jquery - jqGrid paging question -


If you have 17 records and 15 are displayed at a time, then when you are on page 2, you record 16-17 can see when you are on this second page and you press the reload button on the NAV (Set Datatype = 'Jason') when the grid is reloaded then the nav is showing that the grid 16-30 17 are being displayed. It seems a bug - is there any workaround?

There are still 17 rows in the grid - but it is trying to show a complete 15 rows (line number) setting on the second page, when it should show only two rows (16-17) . It is wrong to point out the NAV page (only 17 is the point of talking 30 rows).

You are right. This is an old problem that I always used before

  $ ("# list"). SetGridParam ({Page: 1}). Trigger ('reload grid');  

But another way is to trigger the 'reload grid' additional option: 'current' and 'page'.

  $ ("#list"). Trigger ("reload grid", [{page: 1}]);  

will reset from 1 to page in one step. Use in the form

  $ ("#list"). Trigger ("reload grid", [{present: true}]);  

Allows preservatives to choose current. You can combine for both reasons.


Comments