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

[Solved] Can Sorting/Filtering be applied automatically?

1 Answer 104 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.
Stephen Lloyd
Top achievements
Rank 1
Stephen Lloyd asked on 26 Nov 2009, 01:18 PM
Hello there,
I am interested in converting an existing grid over to use Telerik MVC Grid. One of our requirements is that filtering/sorting is "remembered" for each user, so that if they navigate away to do something and then back to the grid page their "view" is re-applied. Is this possible to do with the MVC Grid without too much hackery?

The only way I can think would be to use jQuery to simulate the sorting/filtering actions manually onLoad, which is obviously not ideal as it causes display lag and additional callbacks if you bind the data, then apply a sort, then apply a filter.

Thanks for your help.
-Stephen

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 30 Nov 2009, 08:14 AM
Hi Stephen,

Currently, the grid does not support this - you can bind the data through custom binding, yet the interface won't show the sorted / filtered state and each request will purge the state.

You could, however, build an URL that will set the grid state, and redirect your users to it, when they request the page for the first time. When the grid does not use AJAX, the generated URLs can be bookmarked.

Kind regards,
Alex
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Stephen Lloyd
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or