jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Reset page with dynamic source Reset page with dynamic source #69176

    martin.l
    Participant

    For anyone else with this issue, remember to check whether the details grid is already on page 0, because if it is the pagechanged event will not fire and the details grid will not be updated.

    var paginginfo = $("#Grid_Students").jqxGrid('getpaginginformation');
     if (paginginfo.pagenum != 0)
     {
       //pagechanged event updates students grid
       $("#Grid_Students").jqxGrid('gotopage', 0);
     }
     else
     {
       //Update students grid manually
       ...
     }
    in reply to: Reset page with dynamic source Reset page with dynamic source #69175

    martin.l
    Participant

    Great, I’ll try that! Thanks for quick support.
    //Martin


    martin.l
    Participant

    Hi Dimitar. I have tried that (sorry, should have mentioned this), however this sometimes results in the details grid updating wrongly. First it will update and display the correct data for a second or so, but will then revert back and show the first page of the data connected to the previous selected row in the master grid. Perhaps this is due to the fact that the second call to .jqxGrid(…) completes before the .jqxGrid(‘gotopage’,0) has completed?
    Is there a way to ensure that the two calls will always be handled in the sequence they were called?

    $(‘#Grid_Students’).jqxGrid(‘gotopage’, 0);

    $(“#Grid_Students”).jqxGrid({ source: studentDataAdapter });

    //Martin

Viewing 3 posts - 1 through 3 (of 3 total)