Results 1 to 2 of 2

Thread: Disable/Enable cells on Ext.grid.Panel and cellediting

  1. #1
    Sencha Premium Member Alex.Muntean@im-c.com's Avatar
    Join Date
    Nov 2013
    Posts
    10
    Vote Rating
    0
      0  

    Question Disable/Enable cells on Ext.grid.Panel and cellediting

    Hello,

    Here comes again the question how to enable/disable a cell inside a Ext.grid.Panel and cellediting...
    I see that many forum threads were opened with this question, but I found no valid example/mechanism for ExtJS 4.2

    Lets consider the following panel:

    Code:
    Ext.create('Ext.grid.Panel', {
        title: 'Cell editor',
        store: store,
        columns: [ {
            text: 'Jan',
            dataIndex: 'Jan',
            width: 50,
            editor: {
                xtype: 'numberfield',
                disabled: true, //Only on creating this panel I see this option of disable/enable!!!
                allowBlank: false
            }
        }, {
            text: 'Feb',
            dataIndex: 'Feb',
            width: 50,
            editor: {
                xtype: 'numberfield',
                allowBlank: true
            }
        }]
    }
    As you can see, there is the disable property, but I need to set the enable/disable dynamically, based on some configurations and not on column level (some cells from a column can be enabled others can be disabled)!

    It's possible on a panel listener to manipulate the panel cell such that those cells are disable/enable?

    Code:
    listeners : {
            afterrender: function (panel) {
                // I need here to update the cells such that some are enabled/disabled, based on config....
                // ??????
    
            }
        }

    Or, the listener is not option, are there other ways to enable/disable cells?

    Regards,
    Alex

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    984
    Answers
    5
    Vote Rating
    -505
      0  

    Default

    Hi there- I have shared this issue with the support team and asked that they reach out to you to provide some assistance. Your patience is greatly appreciated!

    Michele

Similar Threads

  1. Replies: 5
    Last Post: 31 Aug 2014, 9:44 PM
  2. Enable-Disable cells of single column in Ext.grid.EditorGridPanel
    By bhagwatgurle in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 4 Oct 2012, 7:28 AM
  3. Replies: 3
    Last Post: 5 Jan 2012, 7:06 AM
  4. Enable/disable editing cells in editor grid
    By major in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 23 May 2010, 2:10 AM

Tags for this Thread

Posting Permissions

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