jQuery UI Widgets Forums Grid page

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    page Posts
  • page #59487

    daydreamer
    Participant

    Hi,
    I want to set the pageable to the grid, then when i select an option in the show rows selector the grid will show all rows.How can i do with the code and the Pagination still work?

    page #59499

    Dimitar
    Participant

    Hello daydreamer,

    You can set the number of rows (e.g. 33) as one of the page size options (e.g. pagesizeoptions: ["5", "10", "20", "33"]). If you do not know the number, in the ready callback function call getrows to get all rows (and their number with length), i.e.:

    ready: function() {
        var rows = $('#jqxGrid').jqxGrid('getrows');
        $("#jqxGrid").jqxGrid("pagesizeoptions", ["5", "10", "20", 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.