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

RadBreadCrumb and Selected event on rootnode

1 Answer 139 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Matthias Schuster
Top achievements
Rank 1
Matthias Schuster asked on 02 Mar 2009, 09:49 AM
Hi,

I'm using a RadTreeView with a RadBreadCrumb for navigation.
When I select a childnode of the TreeViews rootnode using the breadcrumb, the selected-event gets fired.
But when I then select the rootnode, the selected-event doesn't get fired. Is this behaviour intended?

Is it somehow possible to get the selected-event fired when selecting the rootnode through the breadcrumb?

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 02 Mar 2009, 04:23 PM
Hi Matthias Schuster,

There is no built in functionality in the breadcrumb for this scenario. However I can suggest doing the following:

  1. RadBreadCrumb contains many RadSplitButtonElements which you can extract from the Children collection of RadBreadCrumbElement's StripLayoutPanel. RadBreadCrumbElement's instance is the only child element of the Children collection of RadBreadCrumb's RootElement. An instance of RadBreadCrumbElement's StripLayoutPanel can be gotten by using the Children collection of RadBreadCrumbElement where the StripLayoutPanel is the third child.
  2. Once you have the instances of the breadcrumb's parts you can subscribe to the Click event or MouseDown, MouseUp and modify the SelectedNode property of RadTreeView.
  3. Please keep in mind that the bread crumb is updated when an selection in RadTreeView is made.


Best wishes,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Treeview
Asked by
Matthias Schuster
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Share this question
or