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

save and recover column order

1 Answer 257 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raymond E
Top achievements
Rank 1
Raymond E asked on 07 Feb 2014, 05:25 PM
I've been trying to figure out how to save and recover the column order as set by the user. Does anyone have any working example code on how they've managed to accomplish this? I've found examples of saving filter, sort and page info I've also figure out how to save column viability information but haven't found any information regarding saving user defined column order.

Any help would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 10 Feb 2014, 08:12 AM
Hi Raymond,


In the current case you could use the grid.columns property to access and save their current state. It returns a collection, which reflects the current order and visibility of the columns. In the MVC version of the Grid you could use the columnReorder event to access this information. I am attaching a working sample project.

Regards,
Dimiter Madjarov
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
Raymond E
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or