1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Problem with Expand and Collapse in Dynamic RadtreeList

Problem with Expand and Collapse in Dynamic RadtreeList

4 posts, 0 answered
  1. Ankit
    Ankit avatar
    13 posts
    Registered:
    29 Jul 2011
    13 Feb 2012
    Link to this post
    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
  2. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    16 Feb 2012
    Link to this post
    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
  3. Ankit
    Ankit avatar
    13 posts
    Registered:
    29 Jul 2011
    20 Feb 2012
    Link to this post
    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
  4. Tsvetina
    Tsvetina avatar
    2 posts
    Registered:
    02 Aug 2017
    23 Feb 2012
    Link to this post
    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.
4 posts, 0 answered