Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
I need help sorting client side with paging?
posted

I have a grid that I want users to be able to sort with paging.  Problem is, when the column is sorted the current pages values are sorted as a subset of the larger dataset.  I would like to change the pager index to page 1 following the sort so the user sees the first page of records after the sort.

 I have tried setting up a javascript event handler for the AfterColumnSort event.  I can get the event to fire and I can reference the grid.  I tried setting the grid.currentpageindex = 1 but that didn't work.  How on earth can I change the page of the pager back to page 1?  I was able to do this server side but the sort occurs after the page is changed, which doesn't help.

 Any ideas?