I'm using the selected nodes in a treeview to populate a simple breadcrumb in my tab strip on the client side. If I haven't clicked on the parent node first then it will return null. Here is the code that is driving the functionality. Any help would be greatly appreciated...
function OnClientNodeClicked(sender, args)
{
var treeView = $find("<%= RadTreeView1.ClientID %>");
var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
var selectedTab = tabStrip.get_selectedTab();
var selectedNode = treeView.get_selectedNode();
var parentNode = selectedNode.get_parent();
if (selectedNode.get_level() == 0)
{
selectedTab.set_text(selectedNode._text);
} else {
selectedTab.set_text(parentNode._text + " -> " + selectedNode._text);
}
}