This is a migrated thread and some comments may be shown as answers.

Problem in getting updated node text in code behind after setting the node text in client side

0 Answers 30 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Balaji
Top achievements
Rank 1
Balaji asked on 06 May 2009, 06:58 AM
Hi Telerik,

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

 

 

 

 

 

 

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Balaji
Top achievements
Rank 1
Share this question
or