EXT.NET v3.0 BETA RELEASED!
Now with Tablet Support!
Ext.NET v3.0 Beta is here with lots of new cool features and now with tablet support! Check Examples Explorer now to see it in action or download and test it yourself for free!
Results 1 to 5 of 5

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

  1. #1
    Member
    Join Date
    May 2010
    Location
    USA
    Posts
    146

    [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.

    Code:
    <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 22, 2010 at 12:07 AM.

  2. #2
    Member
    Join Date
    May 2010
    Location
    USA
    Posts
    146
    *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
    Member
    Join Date
    May 2010
    Location
    USA
    Posts
    146
    nvm, i figured out a dirty work around. Just refresh the whole tree...

  4. #4
    Ext.NET - Dev Team Vladimir's Avatar
    Join Date
    Mar 2008
    Location
    Russia
    Posts
    15,375
    Hi,

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

    Unfortunatelly, at this moment, you cannot use controller actions as remote events. I am planning to add MVC actions support soon
    Vladimir Shcheglov
    Ext.NET, Inc.
    Development Team

    Ext.NET Examples | Ext.NET API Docs | ExtJS API Docs | Twitter | Jobs

  5. #5
    Member
    Join Date
    May 2010
    Location
    USA
    Posts
    146
    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