I have a grid with check-box model and I want to disable some of the check-boxes on certain condition.
- Don't want to use renderer to override the DOM element.
Want to do something like this.....
grid.getStore().load({ scope: this, callback: function(records, operation, success) { if (success) { var sm = grid.getSelectionModel(); Ext.each(records, function(record) { if (record.data.chkd) { var row = record.index; // console.log(record.index); sm.select(row, true); // HERE WANT TO DISABLE THE CHECKBOX FOR THE PARTICULAR RECORD } }); } else { //alert(success); //console.log(operation.exception); } } });
Thanks in advance for your help!!