I need to have a javascript function in my ASP.Net page I can call that will:
Any help would be greatly appreciated.
Hello Richard,
Thank you for your source code. I had a look and I found out that the reason that you cannot find the tree with the ClientID is that the ClientID returns the id with underscores, while the method expects it without. You can handle the InitializeTree client side event and save the id that is passed to this method for further use:
function IncludeList_InitializeTree(treeId){
//save treeId
}
or you can use the string returned by the ClientID, and replace all the underscores with empty strings:
var treeid = "<%=IncludeList.ClientID %>".replace(/_/g, "");
var tree = igtree_getTreeById(treeid);
Let me know if you have further questions with this issue.
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
That worked. Thanks.
Shouldn't this be a bug? The function should be able to handle the standard ASP.Net format for
determining the ID of a control (i.e. <%=IncludeList.ClientID %>") without requiring
that the ID be manipulated after retrieval.