Hi Everyone,
I don't know if someone could help me with this. I've been trying all the afternoon and I could not get it right 
I have define a DragZone for a grid...
Code:
Ext.define('Timetabling.view.ItStudentsDragZone', {
extend : 'Ext.dd.DragZone',
grid : null,
//Tell Ext how to recover from an invalid drop. XY from the dragged data
getRepairXY: function() {
return this.dragData.repairXY;
},
// To pair together a drag zone and drop zone
ddGroup : 'itstudents',
getDragData : function(e) { var sourceEl = e.getTarget(),
view = this.grid.getView(),
rowEl = view.findItemByChild(sourceEl),
rec = rowEl && view.getRecord(rowEl);
if (sourceEl) {d = sourceEl.cloneNode(true);
d.id = Ext.id();
return {
ddel: d,
sourceEl: sourceEl,
repairXY: Ext.fly(sourceEl).getXY(),
sourceStore: null,
draggedRecord: null
}
}
}
});
If I select just one item from the grid works fine! but When I've selected two or more items and then I click on the Grid selection to drag it, the item clicked in the grid selection gets selected and the other ones unselected and then I start draging again one item!!!!
I guess I have to get the grid selection as an element but I don't know how to do it...
I would really appreciate if someone has some ideas on how to solve that!
Thanks!
Xisco