View Full Version : Drag all selected items on mouse move

May 29, 2012, 8:42 AM

Regarding this other thread based on Ext.NET v1.X:

Drag selected items (http://forums.ext.net/showthread.php?18204-Drag-selected-items)

We are now moving our prototype to Ext.NET v2.0. We have almost all our required functionality working on Beta 2 unless the need to move all selected items at the same time.

In our first version we could get it thanks to the Draggable property at Resizable control. So in this way, we added onmousedown and onmousemove events to the draggable div items in order to calculate distance between original and current item positions.

As in Ext.NET v2.0 Draggable property has disappeared, we are trying to perform the same behaviour using a DDProxy control as shown in this example:


But despiste add onmousemove event on div item or over dragEl element being dragged, it seems that mouse event is only firing one time, and not all the time that mouse is moving.

Based also in this other sample:


Is any way to perform this issue using DDProxy control?

Thanks in advance,


May 29, 2012, 2:17 PM

It is now working again with Ext.NET v2.0.

In my previous version, omousedown and onmousemove events were set at div elements when they were build dynamically. But now, as startDrag event on DDProxy control is using dragEl item to drag elements instead of original div element, I must call my omousedown function directly on startDrag and add my old onmousemove event over dragEl.

So in this way, and performing some operation over the div dragEl ans some other over the div, I have finally the same behaviour as before.

May be there was a better way to perform this, but it is the only one I found at the moment.

Best regards,