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?

Parents
No Data
Reply
  • 49378
    posted

    Hi nancy1985,

    I have investigated this scenario using version 11.2.20112.2086 but am unable to replicate the behavior. Attatched is my test sample. Please let me know whether the issue occurs with the test page provided. It would help to know your exact product version in order to examine the matter in more detail.

    WebDataTreeNodeDroppedTest.zip
Children