Author Topic: Not bind current item data when in ajax calll put loader in paramquery grid  (Read 484 times)

Punit

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 39
    • View Profile
Hi, I want to run loader on when i was click current item the issue was I faced not loaded current item data in presentation always bind previous item data not current item data in presentation in paramquery grid in asp.net mvc application. Here is my ajax call,

  function tree_grid(ID) {
             $("#divLoading").show();
           
            $.ajax({
                type: "POST",
                url: '/Schedule/GetAllPresentation',
                data: "{ scheduleID: '" + ID + "',YearId:" + YearId + ",CompanyId:" + CompanyId + "}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                async: false,

                success: function (response) {
                         $("#divLoading").hide();
                    var data1 = [];
                    data1 = $.parseJSON(response);
                    data = data1;
                },
                error: function () {
                    $("#divLoading").hide();
                    swal("", "Error in Data !", "error");
                }
            });

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5641
    • View Profile
Where in the code have you assigned data to the grid?