The official release of Ext.NET Mobile is now available. Ext.NET Mobile is an ASP.NET component framework for building Phone and Tablet specific mobile web applications. Read More

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

  1. #1

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


    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">
            <ext:AsyncTreeNode NodeID="0" Text="Managers" />
            <ext:TreeLoader DataUrl="/Controller/DoSomthing" Timeout="60000" />
            <MoveNode Url="/Controller/DoSomething" CleanRequest="true" Method="POST">
                    <ext:Parameter Name="idx" Value="index" Mode="Raw" />
                    <ext:Parameter Name="ruleid" Value="node.nodeID" Mode="Raw" />
    I also tried enabling the Mode="Remote" and the controller still not being called.

    Last edited by geoffrey.mcgill; Jul 22, 2010 at 12:07 AM.
  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

    There is remote mode for the TreePanel

    Unfortunatelly, at this moment, you cannot use controller actions as remote events. I am planning to add MVC actions support soon
    Vladimir Shcheglov
    Sr. Developer
  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, 7:31 AM
  2. [CLOSED] Some Issue with TreePanel Drag and Drop
    By amitpareek in forum 2.x Premium Help
    Replies: 4
    Last Post: May 19, 2012, 10:36 AM
  3. TreePanel - Drag & Drop
    By jigpatel06 in forum 1.x Help
    Replies: 0
    Last Post: Oct 19, 2010, 11:31 AM
  4. Drag and drop from GridPanel to TreePanel
    By jchau in forum Feature Requests
    Replies: 5
    Last Post: Jun 04, 2010, 1:02 PM
  5. [CLOSED] TreePanel Drag and Drop
    By davidhoyt in forum 1.x Premium Help
    Replies: 3
    Last Post: Jan 28, 2009, 6:24 AM

Posting Permissions