EasyUI Forum
May 16, 2024, 01:59:14 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Store menu into localStorage for next time use  (Read 4385 times)
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« 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.
« Last Edit: April 14, 2016, 10:14:02 PM by Pierre » Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #1 on: April 19, 2016, 01:31:27 PM »

Anyone, please?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!