
Originally Posted by
metalinspired
add an listener to change event with simple loop that will traverse trough all your buttons in that group and disable them.
Hi,
I have done for the default all selection for the Model for 'show' event of the window containing the checkBoxModel .bellow is my code.
Code:
onShowSC : function() {
var store = this.getShippingConditionStoreStore();
max = store.getCount();
var view = Ext.getCmp('sccheckgridId');
var model = view.getSelectionModel();
var allSelection = [];
store.queryBy(function(record) {
allSelection.push(record);
});
model.select(allSelection);
But unable to do disable the model for all selection and and again enable by unchecking the 'All' check one.