I need to have a javascript function in my ASP.Net page I can call that will:
Any help would be greatly appreciated.
Hi,
I created a support ticket on your behalf in order to investigate this issue further.
Regards,
Lyuba Petrova
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.
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.
Lyuba
We're running version 9.2.20092.1003. I attached the markup for the entire page. Several of the expected
functions don't return a tree. I got it to work, but I had to hard-code the full ASP.Net ID of the tree
(i.e. "ctl00ContentPlaceHolder1IncludeList") where I expected that "IncludeList" or
"<%=IncludeList.ClientID%>" would work.
There's a lot of unused JS in the page. The functions I'm working on are fairly easy to find.
You are taking the tree, and trying to delete its nodes in the correct way, so there should be some other reason why you are getting null when you try to take it. Would you tell me which Infragistics version are you using? I tried to replicate your error with 9.2.20092.1003, and I had no problems taking the tree and deleting the nodes. Would it be possible for you to attach a sample?