Path property notifies me N times when getting back

2 posts, 0 answers
  1. Kaloyan
    Kaloyan avatar
    1 posts
    Member since:
    Apr 2012

    Posted 21 Jun 2012 Link to this post


    I use the RadBreadCrumb control for navigation in my MVVM SL 4.0 application. Let’s say the control represents the site’s navigation tree. There is a Binding between the control’s Path property and a property in the ViewModel.

    Let’s imagine that the user navigated into the site to location:

    Home/Clients/EU clients/HP Germany

    Each of the segments in the BreadCrumb is represented by a page in the application. If the User navigates, using the bread crumb directly to “Home”, the control changes the Path property several times and I am getting in the ViewModel several times invocations of the property setter. If the Path is different from the last one then the application triggers navigation to a given page.

    As a result if the users click over “Home” directly I’ll get 3 changes in the Path property:

    Home/Clients/EU clients/



    For the user it is not visible because all of the operations are very fast, but it generates useless load to the server, because each page starts to load data and then it is replaced by another one. I would like to be notified from the bread crumb only for the item that the user has selected, not for each path change in order to get there.

    Is there chance to do this with the RadBreadCrumb control?

    Do I miss something, is there any workaround?

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 26 Jun 2012 Link to this post

    Hi Kaloyan,

    The way that the Path property is changed is actually a design decision. However, if you strongly believe that it would be better if we consider changing this behavior, please let me know and I will log your suggestion as a feature request in our PITS. This will allow us to track all customers demand on that issue and prioritize it accordingly.

    However, in your case, it would be better to bind the RadBreadCrumb.CurrentItem property and navigate to the pages based on its value. This property's value is changed only once to reflect the new item currently displayed in the breadcrumb.

    Please give this a try and let me know if it helps.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top