Reputation: 4328
I'm using Sencha ExtJS and I added grid panel with check box model. I want to disable some check boxes based on grid panel value. I haven't seen renderer option for checkbox model.
Upvotes: 0
Views: 2545
Reputation: 4328
Finally I found a solution. Override the checkbox selection model
renderer: function(val, meta, record, rowIndex, colIndex, store, view) {
var status = record.data['status'];
if(status == 's'){
meta.tdCls = Ext.baseCSSPrefix + 'grid-cell-special';
return '<div class="' + Ext.baseCSSPrefix + 'grid-row-checker"> </div>';
} else {
return null;
}
}
source: http://extjswithsandeesh.blogspot.com/2012/05/display-checkboxes-for-selected-rows.html
Upvotes: 2
Reputation: 702
If you are using extJs-4, it is there: checkbox model
and for extJs-3 you find it here: checkbox model
Upvotes: 0