Hybrid 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);
-
30 Aug 2012 6:57 PM #2Sencha - Support Team
- Join Date
- Jul 2010
- Location
- Houston, Tx
- Posts
- 7,190
- Vote Rating
- 195
- Answers
- 436
-
30 Aug 2012 7:18 PM #3
Which Ext version are you using? With Ext 4.1.1, Ext.selection.CheckboxModel does not fire 'beforerowselect' event but instead it fires 'beforeselect' event.


Reply With Quote