I have a treeview with an expand mode of ServerSideCallBack. I would like to be able to select a node by value and expanding the path via client-side. I'm was trying to get all of the parent nodes and call the expand() method down to the node, but after the first expand it told me "could not call expand of null." Could you help me with this problem?
var count = 0;
$.each(value.list, function (otherkey, othervalue) {
count = count + 1;
var tree = $find("pagesLeftNav_treeView");
var node = tree.findNodeByValue(othervalue.pageid);
if (count != value.list.length) {
node.expand();
}
})