I have a hierarchial TreeView inside a combo box. The basic functionality is fine except for the following scenario:
When the edit page is loaded we already know the value of a treeNode. When I click on the drop down button on the combobox,
as it is now, the treeview is displayed with all nodes closed.
I would like the tree view to expand to the proper level with the selected node highlighted. I tried doing this:
_onClientDropDownOpening: function(sender, e)
{
var selectedNode = this._ObjectiveTypeTreeView.get_selectedNode();
if (selectedNode != null)
{
selectedNode.scrollIntoView();
}
},
but it doesn't work. I would appreciate any pointers.
Thanks!
When the edit page is loaded we already know the value of a treeNode. When I click on the drop down button on the combobox,
as it is now, the treeview is displayed with all nodes closed.
I would like the tree view to expand to the proper level with the selected node highlighted. I tried doing this:
_onClientDropDownOpening: function(sender, e)
{
var selectedNode = this._ObjectiveTypeTreeView.get_selectedNode();
if (selectedNode != null)
{
selectedNode.scrollIntoView();
}
},
but it doesn't work. I would appreciate any pointers.
Thanks!