var rowIndex = this.view.findRowIndex(t);
var sm = this.grid.selModel;
- Roo.log(rowIndex);
+ //Roo.log(rowIndex);
if (sm.getSelectedCell) {
// cell selection..
}
- if(rowIndex !== false){
+ var sels = sm.getSelections ? sm.getSelections() : (
+ sm.getSelectedCell() ? [ this.grid.ds.getAt(sm.getSelectedCell()[0]) ] : []);
+
+ // before it used to all dragging of unseleted... - now we dont do that.
+ if(sels){
// if editorgrid..
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]) ] : []
)
};
}
return false;
},
-
+
+ onBeforeDrag : function(data, e)
+ {
+ // if we dont have any data to drag - then cancel.
+ return data !== false;
+ },
onInitDrag : function(e){
var data = this.dragData;
this.ddel.innerHTML = this.grid.getDragDropText();