EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Pierre on April 14, 2016, 02:12:17 AM



Title: Store menu into localStorage for next time use
Post by: Pierre on April 14, 2016, 02:12:17 AM
Hello all
I saw example of show/hide columns on http://jeasyui.com/demo/main/?plugin=DataGrid&theme=default&dir=ltr&pitem=
(example is named Context Menu on DataGrid)

there is this code:

                    if (!cmenu){
                        createColumnMenu();
                    }

what I try to do is to store cmenu into localStorage and when user login, he will have they columns remembered (I can fill it to cmenu using localStorage.GetItem
Questions is - what to put to localStorage once member was chosen what column he want to see in they datagrid so he must not select columns again and again but I can load them from localStorage.
Thank you.


Title: Re: Store menu into localStorage for next time use
Post by: Pierre on April 19, 2016, 01:31:27 PM
Anyone, please?