lundi 30 janvier 2017

How to disable cell on grid according to checkbox status extJs 6

I need to disable some cell according checkbox status changed. I add a listener on checkbox column:

listeners: {
    checkchange: function( me , rowIndex , checked , record , e , eOpts) {

    var row = me.getView().getRow(rowIndex);

    var columnIndex = Ext.getCmp('MyColumnIdToDisable').fullColumnIndex;

    Ext.get(row.childNodes[columnIndex]).setDisabled=!checked;
    }        
}

But this error is displayed:

Uncaught TypeError: Ext.get(...).setDisabled is not a function




Aucun commentaire:

Enregistrer un commentaire