This is a migrated thread and some comments may be shown as answers.

Expanded TreeList when displaying the data

2 Answers 1153 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Ciprian Daniel asked on 24 Sep 2020, 09:02 AM

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 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 24 Sep 2020, 04:51 PM

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).

0
Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
answered on 25 Sep 2020, 07:09 AM

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

 

Tags
TreeList
Asked by
Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Marin Bratanov
Telerik team
Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or