TreeView with breadcrumbs

1 Answer 60 Views
BreadCrumb TreeView
Avraham
Top achievements
Rank 1
Avraham asked on 26 Mar 2023, 09:38 AM

I'm building a file explorer using TreeView component.

i want to show the content of folder, and in header the current path in breadcrumbs.

how can i do it?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 29 Mar 2023, 07:52 AM

Hi Avraham,

It will really depend on how you would like to add the BreadCrumb items from the TreeView UI interaction. For example, the developer can add items upon selection of the node inside the TreeView as demonstrated in the following example:

https://stackblitz.com/edit/angular-1h3eos?file=src%2Fapp%2Fapp.component.ts

This logic can be changed to work on expand or other events provided by the TreeView component. The example isn't fully implemented and additional logic would be required for checking when the item would need to be added or when it would need to be removed from the BreadCrumb item collection.

I hope this helps and steers you in the right direction.

Regards,
Yanmario
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
BreadCrumb TreeView
Asked by
Avraham
Top achievements
Rank 1
Answers by
Yanmario
Telerik team
Share this question
or