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

Disable Hierarchical Items Click

1 Answer 101 Views
BreadCrumb
This is a migrated thread and some comments may be shown as answers.
Emory
Top achievements
Rank 1
Emory asked on 18 Mar 2013, 03:57 PM

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"

CurrentItemChanged="explorerBreadcrumb_CurrentItemChanged"

 

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

 

Header="{Binding Root}"

 

HeaderMemberPath="Header"

 

Path="Path"

 

HierarchicalItemsSource="Parents"

 

HierarchicalMemberPath="Header"

 

IsIconVisible="False"

 

ItemsSource="{Binding Root.Parents}"

 

TextModePath="Path"

 

PathSeparator="=>"

 

IsHistoryEnabled="False"

 

IsTextSearchEnabled="False">

 

</telerik:RadBreadcrumb>

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 20 Mar 2013, 12:10 PM
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.

Regards,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
BreadCrumb
Asked by
Emory
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or