This is a migrated thread and some comments may be shown as answers.

need to apply sort, order, and page index at runtime

3 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joshua Gates
Top achievements
Rank 1
Joshua Gates asked on 24 Mar 2009, 08:53 PM
we have a grid that is beign populated with contact information.
i see there is a way to tie into the event when page is changed..
i can store that page index in a session variable etc...
but i am curious on how to set the grid to that page number at runtime...i am would assume i would set it right after i set the datasource and before i exit out of the needdatasource method? but not sure how.

also i need to save the sort expression and order as far as asc and desc and apply it at runtime

any advice or samples would be appreciate

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Mar 2009, 03:49 AM
Hi Joshua,

I hope you are trying to save the run time settings of RadGrid. If so go through the following help document link and see whether it helps.
Saving grid settings on a per user basis

Thanks
Shinu.
0
Joshua Gates
Top achievements
Rank 1
answered on 25 Mar 2009, 02:25 PM
i saw this sample regarding saving on per user basis...
however does it save what page number they were on? and when we load the same datasource back in when navigating to that page will it return to the page they were on?


Joshua
0
Yavor
Telerik team
answered on 27 Mar 2009, 01:46 PM
Hello Joshua,

This approach does not cater for the page index. However, you can extend it to save the currentPageIndex as well. When the control is reloaded, you can reset it as well, the logic remains the same.

All the best,
Yavor
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Joshua Gates
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Joshua Gates
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or