/**
- * @extends Roo.bootstrap.Table.AbstractSelectionModel
- * @class Roo.bootstrap.Table.RowSelectionModel
- * The default SelectionModel used by {@link Roo.bootstrap.Table}.
- * It supports multiple selections and keyboard selection/navigation.
- * @constructor
- * @param {Object} config
+ * @deprecated
+ *
+ *
*/
Roo.bootstrap.Table.RowSelectionModel = function(config){
},
scope: this
});
+ this.grid.store.on('load', function(){
+ this.selections.clear();
+ },this);
/*
var view = this.grid.view;
view.on("refresh", this.onRefresh, this);
}else{
var isSelected = this.isSelected(rowIndex);
- Roo.log("select row:" + rowIndex)
+ //Roo.log("select row:" + rowIndex);
if(isSelected){
this.deselectRow(rowIndex);
} else {
}
var r = this.grid.store.getAt(index);
- //var r = this.grid.dataSource.getAt(index);
+ if (!r) {
+ return;
+ }
+
this.selections.remove(r);
//.console.log('deselectRow - record id :' + r.id);
if(!preventViewNotify){