Ext.grid.EditorGridPanel中用的是列选择器
if(!this.selModel){
this.selModel = new Ext.grid.CellSelectionModel();
}
Ext.grid.GridPanel中用的是行选择器
getSelectionModel : function(){
if(!this.selModel){
this.selModel = new Ext.grid.RowSelectionModel(
this.disableSelection ? {selectRow: Ext.emptyFn} : null);
}
return this.selModel;
},
因为这个原因所以GridPanel中的鼠标单击可以选择一行,而EditorGridPanel中鼠标单击就是选择/编辑行中的一列.
if(!this.selModel){
this.selModel = new Ext.grid.CellSelectionModel();
}
Ext.grid.GridPanel中用的是行选择器
getSelectionModel : function(){
if(!this.selModel){
this.selModel = new Ext.grid.RowSelectionModel(
this.disableSelection ? {selectRow: Ext.emptyFn} : null);
}
return this.selModel;
},
因为这个原因所以GridPanel中的鼠标单击可以选择一行,而EditorGridPanel中鼠标单击就是选择/编辑行中的一列.