It would be great to be able to expand nodes dynamically by setting the expand property by code.
protected async Task OnItemClickHandler(TreeViewItemClickEventArgs e)
{
var item = e.Item as TreeViewItem;
item.Expanded = true;
}
Hello Florian,
This would be made available through the following enhancement: https://feedback.telerik.com/blazor/1498147-track-changes-in-properties-when-treeview-is-bound-to-observable-collection. I've added your Vote to it and you can click the Follow button there for status updates.
I must note, however, that there is another change coming - a collection of expanded items, so you may want to Follow, Vote (and/or chime in) here: https://feedback.telerik.com/blazor/1448095-expanded-items-handling-feedback-requested.
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.