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

[Solved] Ability to set the filter / sort with a string, the exact one that is passed back in querystring

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Connor
Top achievements
Rank 1
Connor asked on 04 May 2011, 06:07 PM
I am trying to set the filter and sort back to what the user has sorted / filtered on the last time they visited the page.  To accomplish this I had the action with the grid take in the page/sort/filter as params, then store them in the session variable.  When the user comes back to the page with no params or default params, I pull the page/sort/filter strings from the session variable.  That is as far as I can get because as far as I can tell there is no way for me to pass in the strings that the Telerik grid returns back into the mvc grid, it only takes linq.  I would prefer not having to create my own parser for these strings, since the Telerik grid can already read the string because it is the exact string it puts in the query string.

Is there any way / hack I can use to set the Filterable and Sortable functions with a string?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 05 May 2011, 07:15 AM
Hi Connor,

 No, the Filterable and Sortable do not accept strings. However if you add those strings to the query string (by performing a redirect) the grid will read them out and filter/sort itself properly.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Connor
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or