+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Breadcrumb Bug?

Breadcrumb Bug?

4 posts, 0 answered
  1. IT
    IT avatar
    52 posts
    Registered:
    30 Sep 2008
    19 May 2009
    Link to this post
    I've got a breadcrumb control (3.6 latest built-in, no modifications) with the path separator set to >>.  It works fine if I don't limit the number of parents.  When I set the parents to 2, there is no separator between the first two elements, but there is one between the last. Any workaround for this?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 May 2009
    Link to this post
    Hello Stormy,

    Thank you for using our services.

    It turned out that the problem is related to the ShowStartingNode and PathSeparator. Unfortunately, I cannot sent you a work around due to the reason that some properties are set to private.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Dave
    Dave avatar
    37 posts
    Registered:
    26 Dec 2008
    11 Jul 2009
    Link to this post
    Hello!

    I have the same problem (Version 3.6.1936.2:1). Will this be fixed in a future release or is there a workaround now?

    Thanks!

    Dieter
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Jul 2009
    Link to this post
    Hello Dieter,

    You should create a custom control and override InitilizeItem. Below is a sample code. the path separator is not removed or altered. Currently it is hard coded, but it can be exposed as a property.

    protected override void InitializeItem(System.Web.UI.WebControls.SiteMapNodeItem item) 
            { 
                CmsSiteMapNode cmsNode = item.SiteMapNode as CmsSiteMapNode; 
                if (cmsNode != null
                { 
                    Literal lit = new Literal(); 
                    if (cmsNode.ChildNodes.Count > 0) 
                        lit.Text = cmsNode.Title + ">>"
                    else 
                    { 
                        lit.Text = cmsNode.Title; 
                    } 
                    Controls.Add(lit); 
                } 
            } 


    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
4 posts, 0 answered