Hi
We have a radwindow with a rad toolbar across the top and a rad treeview underneath. In a seperate javascript file, I'm trying to find out which treeview node is currently selected when a button on the toolbar is clicked. I have stored the Client ID of the treeview as an attribute of the menu and im using the Ajax $find method to locate the treeview object. The treeview appears to be being found correctly but when i call the get_selected method im getting an object not supported error message. Is there something obvious im misisng?
Below is a cut down version of the code I have in my Javascript file:
For your information we using the Q2 2009 build.
Thanks in advance.
Paul
We have a radwindow with a rad toolbar across the top and a rad treeview underneath. In a seperate javascript file, I'm trying to find out which treeview node is currently selected when a button on the toolbar is clicked. I have stored the Client ID of the treeview as an attribute of the menu and im using the Ajax $find method to locate the treeview object. The treeview appears to be being found correctly but when i call the get_selected method im getting an object not supported error message. Is there something obvious im misisng?
Below is a cut down version of the code I have in my Javascript file:
function ToolbarItemClicked(sender, eventArgs) { |
var toolbar = eventArgs.get_item().get_toolBar(); |
var toolbarItem = eventArgs.get_item(); |
var ctrlID = toolbar.get_attributes().getAttribute("TreeViewID"); |
var treeview = $find(ctrlID); |
var node = treeview.get_selected(); |
} |
For your information we using the Q2 2009 build.
Thanks in advance.
Paul