[CLOSED] Remove DisableSelection on client side

  1. #1

    [CLOSED] Remove DisableSelection on client side

    Hi,

    I have a grid with a checkbox selection model.
    In some cases the selection should be readonly.
    If I disable the whole grid, I am not able to scroll.
    So I have set DisableSelction=true on that grid.

    I did not find any way to unlock the selection on client side, any help?
    Last edited by Daniil; Mar 11, 2014 at 6:39 AM. Reason: [CLOSED]
  2. #2
    Hi @blueworld,

    It is what the DisableSelection do internally:
    if (me.disableSelection) {
        selModel.locked = true;
    }
    http://docs.sencha.com/extjs/4.2.1/s...sableSelection

    So, to unlock
    grid.getSelectionModel().locked = false;
    and to lock again
    grid.getSelectionModel().locked = true;
    I think it should work.

Similar Threads

  1. Replies: 6
    Last Post: Mar 31, 2015, 9:52 AM
  2. GridPanel add/remove record on client side
    By Vinci in forum 2.x Help
    Replies: 1
    Last Post: May 30, 2013, 5:49 AM
  3. Replies: 1
    Last Post: Dec 01, 2010, 5:14 PM
  4. Replies: 4
    Last Post: Mar 19, 2010, 11:35 AM
  5. Replies: 0
    Last Post: Sep 17, 2009, 8:04 AM

Posting Permissions