Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
850
NodeDropped event not fired on WebDataTree
posted

Hi,

I am using WebDataTree in my user control. I am trying to capture the server side NodeDropped event. I have configured the WebDataTree as below:

 

    <ig:WebDataTree ID="tree" Width="300px" Height="500px" runat="server" Font-Size="Small"

        SelectionType="Single" EnableConnectorLines="True" EnableExpandOnClick="True" OnNodeDropped="serverNodeDropped" OnNodeClick="nodeClicked">

        <DragDropSettings AllowDrop="true" EnableDragDrop="true"></DragDropSettings>

        <AutoPostBackFlags NodeDropped="On" NodeClick="On" />

        <ClientEvents NodeClick="tree_NodeClick" />

    </ig:WebDataTree>

Server side event handler:

    protected void serverNodeDropped(object sender, DataTreeNodeDroppedEventArgs e)

    {

        if (e.DestNode != null)

        {

            DataTreeNode destNode = e.DestNode;

            DataTreeNode sourceRootNode = e.SourceNodes[0];

            String keySource = sourceRootNode.Key;

            String keyDest = destNode.Key;

        }

    }

 

But I see that the serverNodeDropped() is not at all called when I drag and drop a node in the UI. Can anyone please help me on this?