getDragData : function(e){
var t = Roo.lib.Event.getTarget(e);
var rowIndex = this.view.findRowIndex(t);
+ var sm = this.grid.selModel;
+
+ //Roo.log(rowIndex);
+
+ if (sm.getSelectedCell) {
+ // cell selection..
+ if (!sm.getSelectedCell()) {
+ return false;
+ }
+ if (rowIndex != sm.getSelectedCell()[0]) {
+ return false;
+ }
+
+ }
+
if(rowIndex !== false){
- var sm = this.grid.selModel;
+
+ // if editorgrid..
+
+
+ //Roo.log([ sm.getSelectedCell() ? sm.getSelectedCell()[0] : 'NO' , rowIndex ]);
+
//if(!sm.isSelected(rowIndex) || e.hasModifier()){
- // sm.mouseDown(e, t);
+ //
//}
if (e.hasModifier()){
sm.handleMouseDown(e, t); // non modifier buttons are handled by row select.
ddel: this.ddel,
rowIndex: rowIndex,
selections:sm.getSelections ? sm.getSelections() : (
- sm.getSelectedCell() ? [ grid.ds.getAt(sm.getSelectedCell()[0]) ] : []
+ sm.getSelectedCell() ? [ this.grid.ds.getAt(sm.getSelectedCell()[0]) ] : []
)
};
}