PDA

View Full Version : Showing proxy while drag drop



url
17 Apr 2013, 12:55 AM
Hi All,

I have a formpanel in which I'm adding items dynamically by dragging and dropping.
I want to re-arrange the fields within the form-panel by drag and drop.

My requirement is to drag the field and,
a proxy should be displayed in valid drop areas and on drop the field should be adjusted int the shown proxy space.

For this i have created DragZone in DropZones while rendering the formpanel.
Over ridden the
notifyOver and notifyDrop methods of DropZone and I'm able to get the dd.proxy object while debugging. (type of statusproxy)
But unable to show in the view.

Reards
URL

slemmon
18 Apr 2013, 1:22 PM
You might look at this example. It dynamically builds a custom drag proxy on drag.
http://docs.sencha.com/extjs/4.2.0/extjs-build/examples/organizer/organizer.html

url
18 Apr 2013, 9:20 PM
Hi,

Thanx for your response.
But the link provided by you is not showing any proxy(dotted line) at valid drop areas.
can you please provide me the way to achieve?

Regards
URL

slemmon
19 Apr 2013, 8:46 AM
I see. The Portal example draws an outline where the component is to be dropped. You might look at that one instead.