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

Grid - Store users settings? Maybe in cookies?

1 Answer 182 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 1
Kyle asked on 29 Oct 2012, 04:46 PM
Current with a grid if a user hides a column (say there is a computer domain column that is always the same. The user is tired of looking at it, so they hide the column). Right now, if they leave that page then go back (or refresh), the column comes back as well. Is there a way to persist this?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 01 Nov 2012, 01:39 PM
Hello Kyle,

I am afraid that what you would like to achieve is not supported out of the box by Kendo Grid. When the user leaves (or refreshes) the page JavaScript objects are re-initialized which means that all Kendo widgets will be rebuild.

The solution would be store the hidden columns in the local storage, cookie, etc. and re-apply the settings after page is loaded. Once you retrieve the column ids, they can be hidden again through the hideColumn method.

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