RadBreadCrumb and Selected event on rootnode

2 posts, 0 answers
  1. Matthias Schuster
    Matthias Schuster avatar
    7 posts
    Member since:
    Jun 2004

    Posted 02 Mar 2009 Link to this post


    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!
  2. Boyko Markov
    Boyko Markov avatar
    610 posts

    Posted 02 Mar 2009 Link to this post

    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.
  3. DevCraft banner
Back to Top