jQWidgets Forums

jQuery UI Widgets Forums Grid changing the pagesize of grid

This topic contains 4 replies, has 2 voices, and was last updated by  rjkantor 8 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • changing the pagesize of grid #93163

    rjkantor
    Participant

    Hello,

    I have created an option to allow my users to change the pagesize in a grid.
    When I change the pagesize using the code below the dropdown values changes in the grid

    $(“#Grid2”).jqxGrid({ pagesize: CInt(Select4.selectedItem())})
    $(“#Grid2”).refresh

    but it is only showing the number of lines that were defined at design time.
    It seems when I set this value for all of my grids (using the code above), it is not affecting them as I would expect.

    Please advise if there is another way to set the value of pagesize so it persists.

    changing the pagesize of grid #93164

    Peter Stoev
    Keymaster

    Hi rjkantor,

    The pagesize property of the Grid sets the page’s size when paging is enabled. Look at: http://jsfiddle.net/go8oe01q/. That Grid sample dynamically changes the page size.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    changing the pagesize of grid #93175

    rjkantor
    Participant

    If I am saving the pagesize and upon reopening my app, I want to set the page size at the start of my application. I have three different grids I am trying to set their size. I am not having any luck in getting the saved size to override the design page size.

    Ideas?

    changing the pagesize of grid #93177

    rjkantor
    Participant

    I tried putting this into the ready function – doesn’t seem to fire.

    $(“#Grid5”).on(“ready”, function ()
    {
    $(‘#Grid5’).jqxGrid({ pagesize: app_pagesize });
    console.log(“app_pagesize: ” + app_pagesize);
    });

    changing the pagesize of grid #93178

    rjkantor
    Participant

    When the pagesize changes the dropdown, the listed items still only shows the 4 items previously set.
    See the 13-16 is only displaying 4 items even though the pagesize has been changed to 10.

    image of dropdown and counts

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

You must be logged in to reply to this topic.