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

Interaction with treeview problems

3 Answers 106 Views
BreadCrumb
This is a migrated thread and some comments may be shown as answers.
Trude
Top achievements
Rank 2
Trude asked on 11 May 2012, 01:07 PM
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.

3 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 16 May 2012, 09:20 AM
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 >>

0
Trude
Top achievements
Rank 2
answered on 05 Sep 2012, 12:07 PM
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!
0
Zarko
Telerik team
answered on 10 Sep 2012, 10:21 AM
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.

Tags
BreadCrumb
Asked by
Trude
Top achievements
Rank 2
Answers by
Zarko
Telerik team
Trude
Top achievements
Rank 2
Share this question
or