[CLOSED] [1.0] - MVC - TreePanel Drag-Drop DirectEvents

  1. #1

    [CLOSED] [1.0] - MVC - TreePanel Drag-Drop DirectEvents

    Hi,

    I need direction on how to setup the controller routing when MoveNode event happens.

    I tried the following code but the controller never gets called.

    <ext:TreePanel ID="TreePanel1" Title="Rules" AutoScroll="true" runat="server" AllowLeafDrop="false" EnableDD="true" Animate="true" UseArrows="true" RootVisible="false" ContainerScroll="true">
        <Root>
            <ext:AsyncTreeNode NodeID="0" Text="Managers" />
        </Root>
        <Loader>
            <ext:TreeLoader DataUrl="/Controller/DoSomthing" Timeout="60000" />
        </Loader>
        <DirectEvents>
            <MoveNode Url="/Controller/DoSomething" CleanRequest="true" Method="POST">
                <ExtraParams>
                    <ext:Parameter Name="idx" Value="index" Mode="Raw" />
                    <ext:Parameter Name="ruleid" Value="node.nodeID" Mode="Raw" />
                </ExtraParams>
            </MoveNode>
        </DirectEvents>
    </ext:TreePanel>
    I also tried enabling the Mode="Remote" and the controller still not being called.

    Thanks
    Last edited by geoffrey.mcgill; Jul 21, 2010 at 11:07 PM.
  2. #2
    *Update: The controller was called, but how to I prevent the node to move in the controller code called by the DirectEvent "MoveNode" ?
  3. #3
    nvm, i figured out a dirty work around. Just refresh the whole tree...
  4. #4
    Hi,

    There is remote mode for the TreePanel
    https://examples1.ext.net/#/TreePane...d/Remote_Mode/

    Unfortunatelly, at this moment, you cannot use controller actions as remote events. I am planning to add MVC actions support soon
  5. #5
    cool. thanks. MVC/MVC2 support would be great~!

Similar Threads

  1. Drag Drop events in TreePanel
    By web4u in forum 2.x Help
    Replies: 0
    Last Post: Aug 08, 2012, 6:31 AM
  2. [CLOSED] Some Issue with TreePanel Drag and Drop
    By amitpareek in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: May 19, 2012, 9:36 AM
  3. TreePanel - Drag & Drop
    By jigpatel06 in forum 1.x Help
    Replies: 0
    Last Post: Oct 19, 2010, 10:31 AM
  4. [CLOSED] TreePanel Drag and Drop
    By davidhoyt in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 28, 2009, 5:24 AM

Posting Permissions