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

Show Parent's Drop Down On Child

1 Answer 52 Views
BreadCrumb
This is a migrated thread and some comments may be shown as answers.
ben
Top achievements
Rank 1
ben asked on 27 May 2015, 08:27 PM

Is there a way to show the BreadCrumb's parent dropdown menu on selection of the child?

 

For example, let's the example program from the WPF Examples / BreadCrumb Theming, it shows a demo of windows explorer.

Local Disk c:\ -> Personal Folders -> Outbox as a sample breadcrumb path.

By default, if I click on the drop down for 'Personal Folders' I'll get a listing of the child elements, i.e. 'Outbox', 'Drafts', etc.  

Outbox doesn't have a drop down associated with it since it is the last element.

Is it possible to setup the control so there would be a drop down on 'Outbox' and clicking it would show all of the items at that level? 

Thanks!

 -ben

 

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 01 Jun 2015, 01:06 PM
Hi Ben,

The described behavior is not supported by RadBreadcrumb out of the box. However, you should be able to implement it with custom code. Basically, you can use a DataTemplateSelector for the breadcrumb items appearance and if an item does not have child elements choose a template with a drop down inside of it that displays the other elements.

For your convenience I prepared a sample project demonstrating this approach. Please give it a try and let me know if it works for you.

Regards,
Martin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
BreadCrumb
Asked by
ben
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or