selModel:Ext.create('Ext.selection.CheckboxModel',{ checkOnly:true, mode:'multi', listeners:{ beforeselect:function(grid){var grid=Ext.getCmp('mylist');var selectionModel=grid.getSelectionModel();var selectedRecords=selectionModel.getSelection();var myValue=selectedRecords[0].get('nowreceive');var myvalue1=selectedRecords[0].get('received'); if(myValue>myvalue1) {return false;} else return true; }} } ),
how to disable selected row in extjs mvc?
310409-Nov-2014
I am using checkboxmodel to select rows but i want to make some rows to be selection disabled based on some logic... here is my what i am trying but 'beforeselect' function doesn't even fires
Updated on 10-Nov-2014
Tom Cruser
10-Nov-2014beforecellmousedown event in the view config works for me.This is done in the viewconfig of the grid.