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

DataSourceRequest and sort icon

2 Answers 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vikash
Top achievements
Rank 1
Vikash asked on 24 Dec 2013, 03:23 PM
I am able to save Grid's sort, reorder and hidden states to database and also able to load Grid state based on saved data. For reorder and hidden columns, I am getting stored information on client side and hiding/reordering columns accordingly.

It is having icon problem when I am restoring state for sort from database. The sorting process is working fine after manipulation of DataSourceRequest but it is not able to show descending/ascending icon on columns. If I am manually putting Sort methods under Kendo MVC wrapper then it is working fine but I need them dynamically generated.

Please suggest what needs to done.

2 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 26 Dec 2013, 09:24 AM
Hi Vikash,

Please note that we already provide example of preserving the grid state in a cookie and restoring it on next page load where the sorting icon is working as expected - you can use this example as a baseline to achieve the desired behavior. Also for convenience I created a jsBin example from the CodeLibrary:

Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Vikash
Top achievements
Rank 1
answered on 31 Jul 2014, 05:58 AM
I have changed the approach for saving and restoring kendo grid state. Hopefully, for someone it can help out.
http://vikutech.blogspot.in/2014/07/storing-and-restoring-kendo-grid-state.html
Tags
Grid
Asked by
Vikash
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Vikash
Top achievements
Rank 1
Share this question
or