I have followed the example I found on the Telerik site on how to create a string representing the full path of the "checked" node in the tree view. This is working fabulously and the function is below:
Well, I have many RadTreeView controls on my screen and throughout my application and I'm wanting to avoid writing a javascript per tree just so I can name the textbox control that is supposed to contain the Full Path string.
I will admit that I'm learning JavaScript in conjunction with learning the Telerik controls so this may be an obvious answer to a more experienced JavaScript developer, but what do I need to do in order to pass the ClientID to this method for the textbox I'm wanting to store the FullPath?
Sadly, there isn't a client-side version of the control's GetFullPath() method :(
Thanks in advance,
Ray
function clientNodeChecked(sender, eventArgs) { var node = eventArgs.get_node(); var s = node.get_text(); var currentObject = node.get_parent(); while (currentObject != null) { if (currentObject != node.get_treeView()) { s = currentObject.get_text() + " > " + s; } else { break; } currentObject = currentObject.get_parent(); } var tbPath; tbPath = $get("<%= lblFullPath_InvGroupOwner.ClientID %>"); tbPath.innerHTML = s; }Well, I have many RadTreeView controls on my screen and throughout my application and I'm wanting to avoid writing a javascript per tree just so I can name the textbox control that is supposed to contain the Full Path string.
I will admit that I'm learning JavaScript in conjunction with learning the Telerik controls so this may be an obvious answer to a more experienced JavaScript developer, but what do I need to do in order to pass the ClientID to this method for the textbox I'm wanting to store the FullPath?
Sadly, there isn't a client-side version of the control's GetFullPath() method :(
Thanks in advance,
Ray
