Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

TreeView Expand Client-Side

$
0
0

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();
                }
            })


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>