1. #1
    Sencha User
    Join Date
    Apr 2009
    Posts
    87
    Vote Rating
    1
    mabra is on a distinguished road

      0  

    Default GridEditorPanel: "editable: false" ignored for CheckColumn

    GridEditorPanel: "editable: false" ignored for CheckColumn


    Hello !

    I ma making my first EditorGrid and got a checkcolumn working in the grid. But my setting for "editable: False" are ignored!

    My column is:
    Code:
    var checkColumn1 = new Ext.grid.CheckColumn
    (
        {
            header: 'Enabled',
            dataIndex: 'Enabled',
            width: 55,
            editable: false
        }
    );
    I cannot find anything, what I could set in another manner. If I do not specify a checkcolumn, the plain text is shown [true/false].

    Any help would be great!

    br++mabra

  2. #2
    Sencha User
    Join Date
    Mar 2009
    Posts
    10
    Vote Rating
    0
    mike.tallroth is on a distinguished road

      0  

    Default


    The issue looks like an oversight in the ux code, but its pretty easy to fix.

    In Ext.grid.Column, getEditor checks editable before returning the editor. But Ext.ux.grid.CheckColumn uses processEvent instead of an editor, and editable is ignored. I've created my own column by extending CheckColumn and have overridden the processEvent function with one that includes the check for editable.

    Code:
    MyCheckColumn = Ext.extend(Ext.grid.CheckColumn, {
        processEvent : function(name, e, grid, rowIndex, colIndex){
            if (this.editable !== false) {
                return MyCheckColumn.superclass.processEvent.apply(this, arguments);
            }
        }
    });
    Ext.reg('mycheckcolumn', MyCheckColumn);
    Ext.grid.Column.types.mycheckcolumn = MyCheckColumn;
    The details here are applicable to 3.3.1, but it looks like a similar fix would work in 4.0.x.

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    7
    Vote Rating
    0
    Alex_Dutch is on a distinguished road

      0  

    Default checkcolumn non-editable

    checkcolumn non-editable


    Try this:

    PHP Code:
    {header'Availability'dataIndex'checkvalue'xtype'checkcolumn'processEvent: function () { return false; }} 
    You don't need editable option.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar