Kendo grid resizable column width
The grid columns may be resizable. I want to store user-adjusted columns width and restore them when the next session starts. The best way to store columns width I've found is the following: var element = $('#grid').kendoGrid({ ... resizable: true, columnResize: function(e) { var state = {}; this.columns.every(function(c,i) { state[c.field] = c.width; return true; }); var state_txt = JSON.stringify(state); localStorage['profile_userprofile_grid_column_width'] = state_txt; } } Now I want to restore column width saved in the previous user session. I can read columns width from the storage: var s
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.