Hello,
I have a Treeview with LoadOnDemand using ServerSideCallback.
I am using a Combobox at the top of the page to act as a quick selector/search when i select a node formt he combo box it selected the node and then expands it.
I then call the scroolIntoView but i get a JS Error stating offsetTop is null or not an object
heres the sample code i use for the Combox's SelctionChanged Event
I have a Treeview with LoadOnDemand using ServerSideCallback.
I am using a Combobox at the top of the page to act as a quick selector/search when i select a node formt he combo box it selected the node and then expands it.
I then call the scroolIntoView but i get a JS Error stating offsetTop is null or not an object
heres the sample code i use for the Combox's SelctionChanged Event
function ddlSearchTreeView_SelectionChanged(sender, eventArgs) |
{ |
var _Item = eventArgs.get_item(); |
var tree = $find("<%=oTreeView.ClientID %>"); |
var node = tree.findNodeByValue(_Item.get_value()); |
node.select(); |
node.expand(); |
// HIGH VALUE FOR TESTING |
window.setTimeout(function() {node.scrollIntoView(); }, 10000); |
} |