-
11 Dec 2008 2:09 AM #1
What composant for drag and drop of INPUT object
What composant for drag and drop of INPUT object
Hello
I work on an application who help user to create form.
The window has two part.
- the left menu is a tree with all INPUT possibility.
- On the right panel, I wan't the same comportment of the second list ( http://extjs.com/examples/dnd/listtolist.html )
Wich EXT component should I use for the right panel ?
Is there any sample of drag and drop tree element on a panel to create it ?
Information :
The draggable element don't seem to be the solution.
The layout must be a FormLayout to have the labelField of the INPUT.
It's a similar application to Zoho creator, with more possibility that we wan't to create.
Pierre
-
11 Dec 2008 5:26 AM #2
Hello
I'have starting to code this to start with my problem.
I capture all event, except the drop event.
Have you a solution tyo resolv this ?
In second time, have you any solution to see the drag element (for preview) when the mouse drag it ?
Thanks
Pierre
[code]
/**
* .
* @date 9 dLast edited by Pmithrandir; 14 Jan 2009 at 2:40 AM. Reason: update of code
-
15 Dec 2008 5:22 AM #3
Hello
We are now 2 developper, and no solution seem to be good for our problem.
I have upload the exemple website to explain the problem.
have a solution ?
http://samourais.info/perso/fr.bluek...rm/IGForm.html
Pierre
PS : I have updated the code on the previous post
-
17 Dec 2008 2:13 AM #4
I'm not really sure what your question is? if this a bug or design problem?
GXT JavaDocs: http://extjs.com/deploy/gxtdocs/
GXT FAQ & Wiki: http://extjs.com/learn/Learn_About_the_Ext_GWT_Library
Buy the Book on GXT: http://www.apress.com/book/view/9781430219408
Follow me on Twitter: http://twitter.com/gslender
-
17 Dec 2008 3:14 AM #5
I found yesterday the solution.
i override drag enter method like this :
and the drop is allowed.Code:@Override public void dragEnter(final DNDEvent e) { // Info.display("Message", "dragEnter", ""); e.status.setStatus(true); super.dragEnter(e); }
List of unresolved problem :
- The "tree to panel" drag and drop cut the TreeItem (like MOVE drag and drop and not COPY operation)
- When I drag an INPUT element, I'm not see the element in is movement.
- I can't move up INPUT element in the main panel.
Any solution ?
the code :
http://samourais.info/perso/CodeJava/


Reply With Quote