Interaction with treeview problems

4 posts, 0 answers
  1. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 11 May 2012 Link to this post

    I have a treeview where some nodes may have equal names:

    Root
    --->Node1
    --->Node2
    --->Node2

    The same hierarchy is used in a breadcrumb.

    So, when a user clicks in the treeview I want the breadcrumb updated. The selected item in the treeview should be updated when the breadcrumb is operated. It all works well except when the two or more nodes on a level have equal names.

    If I click on the last Node2 in the treeview the middle one is selected in the breadcrumb. I've tried setting the Path directly (derived from ContainerFromItemRecursive(_item).FullPath) and setting CurrentItem, but both give the same result. Clicking on the last Node2 in the breadcrumb selects the correct node in the treeview.

    See also attached screenshot.
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 16 May 2012 Link to this post

    Hello Jorn,
    At the moment, as you've noticed, the RadBreadcrumb doesn't work correctly with items that have the same Path (this happens if they have the same TextModePath). The only workaround, for now, is to set different TextModePaths to your items (note: they can still have the same Header but their TextModePath should be different). This bug is logged in our PITS under the name "RadBreadcrumb doesn't work properly if a couple of items have the same path" so you could track its progress.
    If you have further questions please feel free to ask.

    Kind regards,
    Zarko
    the Telerik team

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

  3. DevCraft banner
  4. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 05 Sep 2012 Link to this post

    For now I have implemented your suggested workaround - using the object's id in TextModePath (of course I had to change the TextPath property in the treeview also). This means I loose the history function and textmode (since the id/path is a guid), but I can live with that for the time being.

    I hope this gets fixed soon!
  5. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 10 Sep 2012 Link to this post

    Hi Jorn,
    I'm glad you ware able to workaround your problem. We hope the fix will be available in some of our next releases (the upcoming SP or Q3 2012).

    All the best,
    Zarko
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top