jQuery UI Widgets Forums Grid Pager event

Tagged: ,

This topic contains 4 replies, has 2 voices, and was last updated by  taskmate 8 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Pager event Posts
  • Pager event #83608

    rbrink
    Participant

    Hi
    I like to get the top row data of the grid after the page has been refreshed when I click the right / left page button or change the page number. I cannot figure out which event is triggered after the page has been refreshed and the data is visible in the grid. I tried the pagerrender but that is fired before the page has been refreshed.
    Do you have a solution?

    Thanks Richard

    Pager event #83609

    taskmate
    Participant

    Hi

    The event is pagechanged

    Regards

    Pager event #83651

    rbrink
    Participant

    Hi,

    I tried that but that is fired before the page is rendered and I try to get the data of the top row when the page has rendered, is that possible or is there another way to get that row data?

    Pager event #83659

    taskmate
    Participant

    Hi

    $(“#jqxGrid”).on(“pagechanged”, function (event)
    {
    // event arguments.
    var args = event.args;
    // page number.
    var pagenum = args.pagenum;
    // page size.
    var pagesize = args.pagesize;

    var nwpg = parseInt(pagenum)-1;

    var topRw = parseInt(pagesize) * parseInt(nwpg) + 1;
    if (parseInt(nwpg) === 1){
    topRw =0;
    }

    var data = $(‘#jqxGrid’).jqxGrid(‘getrowdata’, topRw);

    });

    Calucate the rowindex of the row on new page and retrieve the data

    Regards

    Pager event #83660

    taskmate
    Participant

    Hi

    $(“#jqxGrid”).on(“pagechanged”, function (event)
    {
    // event arguments.
    var args = event.args;
    // page number.
    var pagenum = args.pagenum;
    // page size.
    var pagesize = args.pagesize;

    var nwpg = parseInt(pagenum)-1;

    var topRw = parseInt(pagesize) * parseInt(nwpg) + 1;
    if (parseInt(nwpg) === 0){
    topRw =0;
    }

    var data = $(‘#jqxGrid’).jqxGrid(‘getrowdata’, topRw);

    });

    Calucate the rowindex of the row on new page and retrieve the data

    Regards

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

You must be logged in to reply to this topic.