Client side changes not persisting

2 posts, 1 answers
  1. Phani Alla
    Phani Alla avatar
    29 posts
    Member since:
    Jun 2009

    Posted 09 Sep 2009 Link to this post


    I'm trying to integrate RadToolTip with RadTreeView, The user can choose to enter a new column name in the tooltip and on a button click the tool tip, the treeView node name would be updated. I'm using a UserControl to display the controls in the tool tip. 
    The button click event on the tooltip user control calls an UpdateNodeName method on the client side, which does the update on the nodename...I've used treeview.trackChanges() and commitChanges(), but the changes are lost on postback. 
     protected void btnAddColumn_Click(object sender, EventArgs e) 
                string sType = NodeName.Substring(NodeName.IndexOf('(') + 1, NodeName.IndexOf(',') - (NodeName.IndexOf('(') + 1)); 
                NodeName = txtColumnName.Text + "(" + sType + "," + txtLength.Text + ")"; 
                string strScript = string.Empty; 
                strScript += "UpdateNodeName('" + NodeID + "','" + NodeName + "','" + txtLength.Text + "','"+BaseID+"');"; 
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "WebUserControlScript", "CloseActiveToolTip();" + strScript, true); 
     function UpdateNodeName(nodeID, nodeName, attLength, selTreeID) { 
        var SelectedTree = $find(selTreeID); 
        if (SelectedTree != null) { 
            var RootNode = SelectedTree.get_nodes().getNode(0); 
            if (RootNode != null) { 
                var Node = FindNodeByNodeID(RootNode, nodeID); 
                if (Node != null) { 
                    Node.get_attributes().setAttribute("attlength", attLength); 

    I would appreciate any help with this problem,

    Thank you,
  2. Answer
    Yana avatar
    5027 posts

    Posted 14 Sep 2009 Link to this post

    Hello Phani,

    Please try to isolate the problem in a small runnable project and send it to us so we could test it. You should open a support ticket in order to be able to attach files. Thanks in advance

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top