I have html-code like this:
<telerik:RadMultiPage ID="MultiPage" runat="server">
<telerik:RadPageView ID="TablePage" runat="server">
<Cx:DataObjectDefinitionTree ID="TableOverview" runat="server"/>
</telerik:RadPageView>
</telerik:RadMultiPage>
I can get the Multipage by this: var multiPage = $find('<%= MultiPage.ClientID %>');
But i am not able to get either the PageView or the DataObjectDefinitionTree.
Though i need the DataObjectDefinitionTree.
I tried to get the PageView from the MultiPage and then the DataObjectDefinitionTree from that but that did not work either.
How can i get the DataObjectDefinitionTree into an Variable in Javascript?
Edit:
I just want to call two methods from DataObjectDefinitionTree (it is basicly the same as a RadTreeView).
These methods are _getAllItems() and get_selectedNode().
Ok, i found the Error:
<%=TableOverview.ClientID %>gives the wrong ID.To get the correct ID i had to add the following to my ASPX-Control
DataObjectDefinitionTree:public override string ClientID {get { return TableTree.ClientID; }
//TableTree is the base object of DataObjectDefinitionTree
}
Now i get the correct ID when i call
<%=TableOverview.ClientID %>.Thanks for your help, though. 🙂