Show Parent's Drop Down On Child

2 posts, 0 answers
  1. ben
    ben avatar
    5 posts
    Member since:
    Jul 2007

    Posted 27 May 2015 Link to this post

    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

     

     

  2. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 01 Jun 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top