Expanded TreeList when displaying the data

3 posts, 0 answers
  1. Ciprian Daniel
    Ciprian Daniel avatar
    15 posts
    Member since:
    May 2017

    Posted 24 Sep 2020 Link to this post

    Hello,

     

    I'm am loading a flat list with parent-child elements (the children elemnt having a reference to the parent element through a ParentId) into an ObservableCollection and when the data is presented in the TreeList Component the parent nodes are collapsed. Is there a possibility to set the treelist to appear with all the parent elements that have children expanded?

     

    Best regards,

    Cipri

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5799 posts

    Posted 24 Sep 2020 Link to this post

    Hello Cipri,

    You can Follow the implementation of such a feature here: https://feedback.telerik.com/blazor/1481700-control-the-expanded-collapsed-state-of-treelist-items. I've also added a workaround in a second post just now that might be helpful for you.

     

    Regards,
    Marin Bratanov
    Progress Telerik

    Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

  3. Ciprian Daniel
    Ciprian Daniel avatar
    15 posts
    Member since:
    May 2017

    Posted 25 Sep 2020 in reply to Marin Bratanov Link to this post

    Hello Marin,

    Thank you for the workaround that you have posted. It worked in our case.

    For now it's ok like that but we will keep following the development of the TreeList and when this feature to "Control the expanded/collapsed state of treelist items" will be available we will replace the workaround.

    Thank you again.

    Best regards,

    Cipri

     

Back to Top