1. #1
    Ext User Pmithrandir's Avatar
    Join Date
    Sep 2008
    Location
    Rennes - France
    Posts
    40
    Vote Rating
    0
    Pmithrandir is on a distinguished road

      0  

    Default 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

  2. #2
    Ext User Pmithrandir's Avatar
    Join Date
    Sep 2008
    Location
    Rennes - France
    Posts
    40
    Vote Rating
    0
    Pmithrandir is on a distinguished road

      0  

    Default


    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 d
    Last edited by Pmithrandir; 14 Jan 2009 at 2:40 AM. Reason: update of code

  3. #3
    Ext User Pmithrandir's Avatar
    Join Date
    Sep 2008
    Location
    Rennes - France
    Posts
    40
    Vote Rating
    0
    Pmithrandir is on a distinguished road

      0  

    Default


    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

  4. #4
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    I'm not really sure what your question is? if this a bug or design problem?

  5. #5
    Ext User Pmithrandir's Avatar
    Join Date
    Sep 2008
    Location
    Rennes - France
    Posts
    40
    Vote Rating
    0
    Pmithrandir is on a distinguished road

      0  

    Default


    I found yesterday the solution.
    i override drag enter method like this :
    Code:
    @Override
          public void dragEnter(final DNDEvent e) {
            // Info.display("Message", "dragEnter", "");
            e.status.setStatus(true);
            super.dragEnter(e);
          }
    and the drop is allowed.

    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/

Thread Participants: 1