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(); |