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

Grid frozen columns locked/unlocked events

3 Answers 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 09 Apr 2014, 08:37 AM
Looking at the documentation (and also in the code) there doesn't seem to be an event fired when a user changes the locked status on a column via the column menu, if the user drags a column into the locked area then a columnReorder event is fired, is there a way of detecting when a user has changed the lock state of a column so that I can automatically store and restore the locked column states?

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 10 Apr 2014, 02:28 PM
Hello Jason,

Indeed currently there isn't any event that will trigger on column lock/unlock. Do you thing that having such events is essential to have?

You can verify column state by inspecting the locked flag in the grid columns.

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jason
Top achievements
Rank 1
answered on 10 Apr 2014, 03:00 PM
Hi Nikolay, 

Thanks for the response, currently I'm attempting to store away state on the grid automatically when a user changes elements, I can currently do this for column widths, sort order, column order change, column hidden, column visible just seems like this one is the odd one out not having and event for lock/unlock?

I can obviously change this mechanism to work based on button press/timer check just seems to be inconsistent with the other column state changes.
0
Accepted
Nikolay Rusev
Telerik team
answered on 14 Apr 2014, 07:24 AM
Hello Jason,

After further discussions we will expose such events. Currently you can track the locked state of the columns by handling the `columnReorder` event. The example bellow shows how you can track changes from the column menu.

http://trykendoui.telerik.com/@rusev/OZix

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