Revision: 7985
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 25, 2008 22:59 by arunpjohny
Initial Code
Ext.CheckboxSelectionModel.override({
handleMouseDown : function(g, rowIndex, e){
if(e.button !== 0 || this.isLocked()){
return;
};
var view = this.grid.getView();
if(e.shiftKey && this.last !== false){
var last = this.last;
this.selectRange(last, rowIndex, e.ctrlKey);
this.last = last; // reset the last
view.focusRow(rowIndex);
}else{
var isSelected = this.isSelected(rowIndex);
if(e.ctrlKey && isSelected){
this.deselectRow(rowIndex);
}else if(!isSelected || this.getCount() > 1){
this.selectRow(rowIndex, true);
view.focusRow(rowIndex);
}
}
}
});
Initial URL
Initial Description
Initial Title
Extjs CheckboxSelectionModel keepExisting
Initial Tags
Initial Language
JavaScript