I am using ajax rad tree view in my project. And we have the requirement of node drag & drop functionality.
And in OnClientNodeDropping event I have written one function to change the source node text. After that I need to get the updated text at server side. But I am not getting the updated text from the source node at code behind.
Sample code:
<
telerik:RadTreeView ID="RadTreeView1" MultipleSelect="false" OnNodeDrop="RadTreeView1_HandleDrop" EnableDragAndDropBetweenNodes="true" EnableDragAndDrop="true"
OnClientNodeDropping="onNodeDropping" EnableViewState="true" runat="server">
</telerik:RadTreeView>
---------------------------------------------------
function onNodeDropping(sender, args)
{
args.get_sourceNode().set_text(args.get_sourceNode().get_text() +
"_" + args.get_sourceNode().get_value());
}
---------------------------------------------------
In the below event I need to access the updated text. But When I try access the sourceNode.text, it is giving old text only
Protected Sub RadTreeView1_HandleDrop(ByVal sender As Object, ByVal e As RadTreeNodeDragDropEventArgs)
Dim sourceNode As RadTreeNode = e.SourceDragNode
Dim destNode As RadTreeNode = e.DestDragNode
End Sub
Please help me to get the updated text in code behind.
Thanks in advance
Balaji Velasiri