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

Best Practice autosaving gridState

1 Answer 6 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Holger
Top achievements
Rank 1
Holger asked on 02 Jul 2015, 08:39 AM

Hello,

currently i am using events so auto save the gridOptions into local storage: 

.Events(events => events.DataBound("gridStateChanged")
                     .ColumnShow("gridStateChanged")
                     .ColumnHide("gridStateChanged")
                     .ColumnReorder("gridStateChanged")
                     .ColumnResize("gridStateChanged"))

The grid state is restored automatically when the document gets ready.

So is this approach correct or is there a smarter way than to wire all that events? Is there a better way to implement an autosave / restore mechanism?

 

Thanks in advance

Holger

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 03 Jul 2015, 03:24 PM
Hello Holger,

This is the standard way to achieve the desired behavior and in the general case, there is no smarter or more recommended way to do it.

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Holger
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or