Threaded View
-
28 Aug 2012 4:24 AM #1
Unanswered: Disabling the some checkboxselectionmodel based on the condition
Unanswered: Disabling the some checkboxselectionmodel based on the condition
Hi
Am trying to disable some checkboxselection model inserted in grid .I have tried with the beforerowselect listener of the checkboxselection .This listener is not triggered when the row is selected.Is there anyway to disable the checkboxselection model based on some criteria?Code:var checkbox= new Ext.grid.CheckboxSelectionModel({ listeners: { "beforerowselect" : function (sm, rowIndex, keep, rec) { var id = parseInt(rec.id); if (id=='24'){ return false; } } } }); coumns1.push(checkbox);


Reply With Quote