[CLOSED] GridPanel: How to set DisableSelection programatically in Javascript

  1. #1

    [CLOSED] GridPanel: How to set DisableSelection programatically in Javascript

    Hi,

    Can you advice how to set DisableSelection in Javascript for GridPanel?

    I tried:
    Ext.getCmp('GridPanelTrendingPreferredList').getSelectionModel().setDisableSelection(true);
    and
    Ext.getCmp('GridPanelTrendingPreferredList')..setDisableSelection(true);
    and it both returned an error.

    I tried
    Ext.getCmp('GridPanelTrendingPreferredList').DisableSelection = true;
    * I was guessing on the property name since I am unable to find it with google.

    Regards, J
    Last edited by Daniil; Oct 06, 2011 at 8:43 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi,

    On the fly please use the SelectionModel .lock() and .unlock() methods.
  3. #3
    Hi Daniil,

    Thanks. It works. Please close this ticket.

    Regards, J

Similar Threads

  1. [CLOSED] How to close a ContextMenu programatically
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 26, 2012, 9:17 PM
  2. [CLOSED] Change heigth of gridpanel programatically in javascript
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Aug 12, 2011, 7:18 PM
  3. [CLOSED] Removing items from a grouptabpanel programatically
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 05, 2010, 12:47 PM
  4. [CLOSED] Select TreeNode Programatically
    By Ben in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 04, 2009, 9:45 AM
  5. Replies: 1
    Last Post: Jan 29, 2009, 9:35 AM

Posting Permissions