Problem with Expand and Collapse in Dynamic RadtreeList
Hello Support Team,
Thanks a lot for your Quick Response,
we are facing a new problem with Expand and Collapse in Dynamic RadtreeList. I am not able to Perform Collapse when TreeList is Expanded and also not able to Perform Expand when Tree is in Collapse mode. it throws an Error :
Microsoft JScript runtime error: Unable to get value of the property 'tHead': object is null or undefinedThanks
Please help me regading this asap.
Ankit Rastogi
Hi Ankit,
Are you using our default navigation, since it the TreeView navigation is actually based on RadTreeView not the RadTreeList control, and we haven't experienced such errors with it before. Do you get the error in a custom control? Some additional information about your scenario will be helpful.
Kind regards,
Jen Peleva
the Telerik team
Hi Jen Peleva,
Actually we are creating more then One RadTab on a page having dynamic RadTreeList on the diiferent RadMultiPages in RadTabs dynamically, There Every thing working fine except Expand and Collapse Properties. Now the Previous JScript Error of 'tHead' was resolved, because we upgrade our Telerik dll with the latest Version. But we are not able Rebind the TreeList on Expand and Collpase comand, because we don't know the ID of Treelist, when using Needdatasource or any other Event because . we are genrating ID by appending some data to the ID in a sequence to avoid same ID of Radtreelist on the same page. when we try to Expand and Collapse then the we lost TreeList due to Postback .
Is there any solution regarding the Problem.
Thanks and Regards
Ankit
Hi Ankit,
Can you confirm how you are binding the treelist? If you are using NeedDataSource, the control would rebind itself implicitly on expand/collapse. Have you confirmed that NeedDataSource does not fire? If so, make sure that you do not have any calls to DataBind() for the treelist in your code.
Also, can you confirm that you are following the guidelines for dynamically creating a RadTreeList control, described here:
http://www.telerik.com/help/aspnet-ajax/treelist-programmatic-creation.html
Regards,
Tsvetina
the Telerik team