[CLOSED] Question: Any easy way to clear all locked columns on client side ?

  1. #1

    [CLOSED] Question: Any easy way to clear all locked columns on client side ?

    Hi, Is there any utility method that can clear all grid locked columns?
    Thanks
    -szhang
    Last edited by fabricio.murta; Aug 18, 2017 at 7:08 PM.
  2. #2
    Hello @susanz!

    Not natively, I'm afraid.

    But here's an one-liner to unlock any columns in a locked grid:

    Ext.each(grid.getColumns(), function(col) { grid.unlock(col); });
    Notice this will also unlock columns like RowNumberer or Checkbox, if they were, so you may need to elaborate in the inner function's code to exclude columns you may want to ignore while unlocking columns on the grid.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Thanks! That is what I need. Please close the ticket.
    Appropriate all your details!
    -susanz
  4. #4
    Glad it helped, thanks for the feedback!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 3
    Last Post: Mar 11, 2015, 7:28 PM
  2. Replies: 3
    Last Post: Feb 04, 2015, 5:08 PM
  3. Replies: 17
    Last Post: Dec 29, 2012, 6:25 AM
  4. [CLOSED] 2.x Hide Grid columns on client side
    By omazlov in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 07, 2012, 1:32 PM
  5. Clear all tab content client side
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Jun 30, 2009, 3:57 PM

Posting Permissions