Reset pageIndex when changing dataSource
New DiscussionHello,
I’m using the igGrid with the Remote Paging feature. In my application, the datasource URL can be modified with several parameters.
Problem : when I’m navigating to the page X, then I update the datasource with another URL. The grid stay on the page X and does not come back to page 0.
I tried to “force” the grid to reset the pageIndex to 0 before changing the datasource with the following line : $(“.selector”).igGrid(“pageIndex”, 0)
But it send a request to the server (expected behavior). Then changing the datasource itself sends another request to the server.
So my application is sending 2 requests when changing datasource …
Is it possible to reset the pageIndex when changing datasource ?
Thank you in advance.
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
4 Created On
Apr 13, 2015 Last Post
11 years, 4 months ago