Problem with Expand and Collapse in Dynamic RadtreeList

Posted by Community Admin on 04-Aug-2018 12:31

Problem with Expand and Collapse in Dynamic RadtreeList

All Replies

Posted by Community Admin on 13-Feb-2012 00:00

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

Posted by Community Admin on 16-Feb-2012 00:00

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

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 20-Feb-2012 00:00

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

Posted by Community Admin on 23-Feb-2012 00:00

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

If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

This thread is closed