I'm using JavaScript to expand a tree node based on the condition. Script work in IE and FF but not in Chrome, the version of my Chrome browser is 11.
function ClientNodeExpanded(sender, eventArgs) { var node = eventArgs.get_node(); if (typeof (node) !== 'undefined' && node != null) { if (node.get_nodes().get_count() > 0) { for (var i = 0; i <= node.get_nodes().get_count(); i++) { var ChildNode = node.get_nodes().getNode(i); if (typeof (ChildNode) !== 'undefined' && ChildNode != null) { if (ChildNode.get_text() == "Online") { ChildNode.expand(true); } } } } }}
Can you tell me if this is a problem with the control or i'm doing something wrong?
Thanks you.