Root not included in TextMode path

5 posts, 0 answers
  1. Andreas
    Andreas avatar
    8 posts
    Member since:
    Nov 2012

    Posted 21 Jan 2013 Link to this post

    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
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 24 Jan 2013 Link to this post

    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.

  3. DevCraft banner
  4. Andreas
    Andreas avatar
    8 posts
    Member since:
    Nov 2012

    Posted 24 Jan 2013 Link to this post

    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
  5. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 29 Jan 2013 Link to this post

    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.

  6. Andreas
    Andreas avatar
    8 posts
    Member since:
    Nov 2012

    Posted 29 Jan 2013 Link to this post

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