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

Preserve Page and Sort In Session variables

1 Answer 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Zed
Top achievements
Rank 1
Zed asked on 10 Apr 2009, 10:49 AM
I know how to capture the page and the sort header and direction in session variables.  I do not know how to apply these to the grid.  Can someone show me how to set grid sort/direction and page when the page is not post back (I will test to see if session variables are not null)

Thanks

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 13 Apr 2009, 01:57 PM
Hello Zed,

To set default sort expression/sort order or page index for the grid, consider applying sort expression either declaratively or programmatically and set the CurrentPageIndex property of the control.

In case you would like to save the grid settings on a per user basis, consider the solutions presented in this documentation topic (see the code library project linked at the bottom of it as well).

Best regards,
Sebastian
the Telerik team

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