Hi,
I'm creating a custom sharepoint control (ascx) contains has a RadTreeView control. I am trying to get the tree control instance from a javascript
function as follows:
// Gets a handle to the TreeView.
function GetTreeControl()
{
// Get a handle to the TreeView.
var tree = document.getElementById('radTreeModule');
//var tree = document.getElementById('<%= radTreeModule.ClientID %>');
if ( tree == null || tree == undefined )
return null;
return tree;
}
Note: i tried two options for getElemenetById.
I get null when using
var tree = document.getElementById('radTreeModule');
The tree nodes don't behave properly when using
var tree = document.getElementById('<%= radTreeModule.ClientID %>');
I read somewhere that the INamingContainer implemented by Sharepoint may not support document.getElementById('<%= xxx.ClientID %>'); syntax.
So how do I get the tree object for this custom control in javascript within the custom control?
I'm creating a custom sharepoint control (ascx) contains has a RadTreeView control. I am trying to get the tree control instance from a javascript
function as follows:
// Gets a handle to the TreeView.
function GetTreeControl()
{
// Get a handle to the TreeView.
var tree = document.getElementById('radTreeModule');
//var tree = document.getElementById('<%= radTreeModule.ClientID %>');
if ( tree == null || tree == undefined )
return null;
return tree;
}
Note: i tried two options for getElemenetById.
I get null when using
var tree = document.getElementById('radTreeModule');
The tree nodes don't behave properly when using
var tree = document.getElementById('<%= radTreeModule.ClientID %>');
I read somewhere that the INamingContainer implemented by Sharepoint may not support document.getElementById('<%= xxx.ClientID %>'); syntax.
So how do I get the tree object for this custom control in javascript within the custom control?