Hi,
I have a Treeview control nested inside a RadComboBox. The Expand mode is ServerSideCallBack. I want to select a node in the tree through javascript. But the branch for that node is not expanded. I know all the ancestors of that node. So I tried to expand that branch starting from the top level parent. I use the following piece of code to expand the parent.
This expands only the second level parent (the first level parent is already there and expanded on the initial load). I am not able to expand further from the second level. Please help!!
I have a Treeview control nested inside a RadComboBox. The Expand mode is ServerSideCallBack. I want to select a node in the tree through javascript. But the branch for that node is not expanded. I know all the ancestors of that node. So I tried to expand that branch starting from the top level parent. I use the following piece of code to expand the parent.
if
(parentNode != null && !parentNode.get_expanded()) {
_treeFirst.trackChanges();
parentNode.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ServerSideCallBack);
parentNode.set_expanded(
true);
_treeFirst.commitChanges();
}
This expands only the second level parent (the first level parent is already there and expanded on the initial load). I am not able to expand further from the second level. Please help!!