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

Root not included in TextMode path

4 Answers 83 Views
BreadCrumb
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 21 Jan 2013, 01:05 PM
Hey,

i have a little problem or rather a suggestion.
The default behavior of the breadcrumb is to display the root header in the path (if not in textmode).
Even the history paths include the root header.

This should also be available in textmode of breadcrumb itself.
Since the breadcrumb is not supporting it, is there a way to get this to work?

Example hierarchy:

Root
-- Node 1
---- Node 1.1

Path: Node 1\Node 1.1
History: Root\Node 1\Node 1.1

Here the path should equal the history.

Greets

4 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 24 Jan 2013, 01:15 PM
Hi Andreas,

I tried to reproduce your scenario with our latest release 2012 Q3 SP1 (2012.3.1129.1050) and it seems that the code works as expected. Can you please elaborate on your scenario? What dlls version do you use? Do you have a data-binding scenario? It will be great if you can send me a sample runnable project so that I can further investigate your issue and suggest the best approach in your case.

Regards,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Andreas
Top achievements
Rank 1
answered on 24 Jan 2013, 01:30 PM
Hey Pavel,

my current release is the same as the one you mentioned.
About my scenario:

First here is mal .xaml using the breadcrumb:
<telerik:RadBreadcrumb
    Name="Breadcrumb"
    HeaderMemberPath="Name"
    HierarchicalMemberPath="Name"
    HierarchicalItemsSource="Children"
    VerticalAlignment="Stretch"
    TextModePath="Name"
    Header="{Binding Company}"
    ItemsSource="{Binding Company.Children}"/>

To make things more clear.
I am using a mvvm application structure but that shouldn't matter.
The Company class looks similar to this:

public class Company
{
    public string Name { get; set; }
    public List<Company> Children { get; set; }
}

So you see its really simple.
What happens is that the breadcrumb shows the following path:

Company1 > Company2 > Company3

Which is fine, but if i enter the text mode i will get this:

Company2\Company3

Hope you can use this example code to reproduce it.
If not i will setup a complete solution for you to investigate this issue.

Greets
0
Pavel R. Pavlov
Telerik team
answered on 29 Jan 2013, 12:54 PM
Hi Andreas,

I noticed that you are using a List in your business object. This is considered as bad practice and we suggest you to change it with ObservableCollection. Please take a look at the attached project and let me know if you can reproduce the issue with it. In case that you can not reproduce it I will kindly ask you to send me your project. This way I will be able to further investigate your issue and suggest the best approach in your case.

Regards,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Andreas
Top achievements
Rank 1
answered on 29 Jan 2013, 01:24 PM
Hey Pavel,

thanks for the response.
I have checked you project and ye it works, surprisingly because my implementation is nearly the same.
I will try to reproduce the issue within the project you gave me.
Tags
BreadCrumb
Asked by
Andreas
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Andreas
Top achievements
Rank 1
Share this question
or