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

1 posts, 0 answers
  1. Balaji
    Balaji avatar
    30 posts
    Member since:
    Mar 2008

    Posted 06 May 2009 Link to this post

    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">


    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







Back to Top