Hey Telerik!
The Version of the Telerik.Web.UI.dll I use is: 2008.03.1314.20
I am selecting a TreeNode like so:
If I put an alert(nodeTree.scrollIntoView()) in front of the functioncall the browser tells me "undefined" meaning the function is not defined. Any clue why this should happen?
I realize the tree scrolls and selects the node at the same time, but it should be able to utilize the scrollIntoView() function as this method is called on the Timeout and therefore later?
Thanks for any advice on this. Sincerely, Peter.
The Version of the Telerik.Web.UI.dll I use is: 2008.03.1314.20
I am selecting a TreeNode like so:
function OpenTreeToSpecificNodeRecursion() { |
var tree = $find('<%= rpbOperational.Items[0].Items[0].FindControl("rtGeographic").ClientID %>'); |
if (aIds2Node.length == 0) { |
return; |
} |
if (tree.findNodeByValue(aIds2Node[0]) != null) { |
nodeTree = tree.findNodeByValue(aIds2Node.shift()); |
if (aIds2Node.length == 0) { |
tree.unselectAllNodes(); |
nodeTree.select(); |
window.setTimeout(function() { nodeTree.scrollIntoView(); }, 400); |
return; |
} |
nodeTree.expand(); |
} |
window.setTimeout("OpenTreeToSpecificNodeRecursion()", 10); |
} |
If I put an alert(nodeTree.scrollIntoView()) in front of the functioncall the browser tells me "undefined" meaning the function is not defined. Any clue why this should happen?
I realize the tree scrolls and selects the node at the same time, but it should be able to utilize the scrollIntoView() function as this method is called on the Timeout and therefore later?
Thanks for any advice on this. Sincerely, Peter.