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

How to redirect to Filtered Data in Grid

1 Answer 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Poyraz
Top achievements
Rank 1
Poyraz asked on 19 May 2011, 04:47 PM
Hello

I have a grid that displays products and when a user filters data on grid and go to detail page, make neccessary changes, I want to go back to filtered data again. Because i moved to another page, i use response.redirect(product.aspx) where all filtering and paging is gone.If i use browsers back button twice i can see filtered data.

How can i handle this?

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 24 May 2011, 09:42 AM
Hello Poyraz,

RadGrid's filter expression is contained in the RadGrid1.MasterTableView.FilterExpression property - so you can persist this object (it is a simple string) in Session state, for example, and retrieve it and assign it back on each page load.

You might also be interested in the following online example which demonstrates a still more complicated scenario:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx

Hope it helps.

All the best,
Tsvetoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Poyraz
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or