jQWidgets Forums

jQuery UI Widgets Forums Grid grid row number

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 11 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • grid row number #30405

    mijus
    Participant

    I can’t find a method to get row number in page. I have rowid and rowindex but that’s not what I need. Row number in page would always be from 0 to {pagesize}. What is the simple way to get it?

    grid row number #30421

    Dimitar
    Participant

    Hello mijus,

    Please call the getpaginginformation method to determine the page size and number of pages, e.g.:

    var paginginformation = $('#jqxgrid').jqxGrid('getpaginginformation');
    var pagenum = paginginformation.pagenum;
    var pagesize = paginginformation.pagesize;
    var pagescount = paginginformation.pagescount;

    To get the number of all the rows in a grid, invoke the getrows method:

    var rows = $('#jqxgrid').jqxGrid('getrows');
    var rowscount = rows.length;

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.