Results 1 to 4 of 4

Thread: EditorGridPanel - restore columnModel by default

  1. #1
    Sencha User
    Join Date
    Jun 2008
    Posts
    19

    Default EditorGridPanel - restore columnModel by default

    Hi there,
    I have set the following gridPanel/columnModel listeners: (columnmoved, hiddenchange, columnresize, sortchange) and save all grid changes in cookies, then on page reload I set saved options back. All works great.
    Also I have add new button to bbar named 'Restore Grid Configs', I wish to restore columnModel by default clicking on this button.

    What I do:
    1. Save current configs before change them based on cookie entries.
    Code:
    var savedConfigs = grid.initialConfig;
    2. Set saved configs on my button click
    Code:
    columnModel.setConfig(savedConfigs);
    This way works bad and hide whole column model

    Is there any good method to restore grid/columnModel?
    Thanks

    John

  2. #2
    Sencha User
    Join Date
    Jun 2008
    Posts
    19

    Default

    To bad explanation? I can rephrase if needs )

  3. #3
    Sencha User
    Join Date
    Jun 2008
    Posts
    19

    Default

    Have found solution.

  4. #4

    Default

    I'd check out Ext.grid.GridPanel.reconfigure
    Wes

Similar Threads

  1. Replies: 3
    Last Post: 15 Sep 2010, 9:12 PM
  2. Default Sort by a Column on ColumnModel
    By StevenMcD in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 1 Apr 2009, 5:44 AM
  3. EditorGridPanel --columnmodel problem
    By Selvam packiam in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 31 Mar 2009, 2:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •