Disable Hierarchical Items Click

2 posts, 0 answers
  1. Emory
    Emory avatar
    1 posts
    Member since:
    Mar 2013

    Posted 18 Mar 2013 Link to this post

    I am currently displaying a Breadcrumb with the intention of showing the Parents of the currentItem.  When the user clicks on the breadcrumb the dropdown displays of all Parents of the currentItem.  When any of those Parents are clicked on the Hierarchical list, it changes the breadcrumb's current item to the newly selected one.

    Question:  Is it possible to disable any changes from the Hierarchical dropdown list, i.e. when a user clicks th dropdown nothing will happen.?

    I can provide more code if necessary.

    telerik:RadBreadcrumb x:Name="explorerBreadcrumb"



    Grid.Column="1" Grid.ColumnSpan="2" Margin="60,0,0,0"


    Header="{Binding Root}"












    ItemsSource="{Binding Root.Parents}"











  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1240 posts

    Posted 20 Mar 2013 Link to this post

    Hello Emory,

    Unfortunately this behavior is not supported out of the box. However, you can achieve your goal by editing the default template of the control. For your convenience I extracted and edited the default template of the RadBreadcrumb contrl in the attached project. In order to achieve the implemented behavior I set the IsEnabled="False" to the ScrollViewer placed inside the DropDownContent of a RadSplitButton called "SplitButton", placed inside the ControlTemplate named "BarItemControlTemplate".

    Please take a look at the attached project and let me know if it works for you.

    Pavel R. Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top