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

Plus sign to expand node not showing when creating node on client-side

1 Answer 74 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Polaris431
Top achievements
Rank 1
Polaris431 asked on 20 Jan 2009, 01:37 PM

When I add a node on the client-side, I set the ExpandMode property to ServerSideCallBack. The node gets created but the plus sign next to the node does not appear. Only after refreshing the page when the tree gets reloaded will it appear. How can I get it to appear immediately after adding the node. Here is my code:

        tree.trackChanges();  
        var node = new Telerik.Web.UI.RadTreeNode();  
        node.set_value(id);  
        node.set_text(nodeName);  
        node.set_imageUrl(imageURL);  
        node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ServerSideCallBack);  
 
        nodes = tree.get_nodes();  
        nodes.insert(position, node);  
          
        var elem = node.get_element();  
        elem.setAttribute('title', description);  
        node.select();  
        node.scrollIntoView();  
        tree.commitChanges(); 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 20 Jan 2009, 04:59 PM
Hello Polaris431,

I couldn't reproduce this problem using the current official release 2008.3 1314. I have tested in our load on demand example.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Polaris431
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or