BreadCrumb Menu Path with nodes

2 posts, 0 answers
  1. Dhyan
    Dhyan avatar
    27 posts
    Member since:
    Feb 2016

    Posted 02 Mar 2016 Link to this post



    I am using to generate menu

    How can i use the bread crumb up to the level RadSiteMapNode. I was using following code sample  but not working 


    using System;
    using System.Collections.Generic;
    using Telerik.Web.UI;
    namespace Menu.Examples.Programming.ShowPath
        public partial class DefaultCS : System.Web.UI.Page
            //If RadMenu is data bound, please use its DataBound event instead of PageLoad.
            protected void Page_Load(object sender, EventArgs e)
                RadMenuItem currentItem = RadMenu1.FindItemByUrl(Request.Url.PathAndQuery);
                if (currentItem != null)
                    //Select the current item and his parents
                    //Update the title of the
                    PageTitleLiteral.Text = currentItem.Text;
                    //Populate the breadcrumb
            private void DataBindBreadCrumbSiteMap(RadMenuItem currentItem)
                List<RadMenuItem> breadCrumbPath = new List<RadMenuItem>();
                while (currentItem != null)
                    breadCrumbPath.Insert(0, currentItem);
                    currentItem = currentItem.Owner as RadMenuItem;
                BreadCrumbSiteMap.DataSource = breadCrumbPath;

    <telerik:RadMenu RenderMode="Lightweight" runat="server" ID="RadMenu1" Skin="Glow">
                <DefaultGroupSettings Height="270px" />
                    <telerik:RadMenuItem Text="Asia">
                            <telerik:RadSiteMap runat="server" ID="RadSiteMap1" Skin="Glow" CssClass="itemContent asia">
                                <DefaultLevelSettings ListLayout-RepeatColumns="3"></DefaultLevelSettings>
                                    <telerik:RadSiteMapNode Text="Afghanistan"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="Bangladesh"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="Cambodia"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="China"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="India"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="Indonesia"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="Iran"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="Iraq"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="Japan"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="Maldives"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="Philippines"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="Saudi Arabia"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="Thailand"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="Yemen"></telerik:RadSiteMapNode>
                                    <telerik:RadSiteMapNode Text="United Arab Emirates"></telerik:RadSiteMapNode>

  2. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    1176 posts

    Posted 07 Mar 2016 Link to this post

    Hi Dhyan,

    Could you, please give us a bit more details about your implementation:
    - Give us the markup for the control with ID="BreadCrumbSiteMap";
    - Give us the markup for the control with ID="PageTitleLiteral";
    - Explain what would you like to render / achieve using breadcrumb;

    I am looking forward to your replay.

    Veselin Tsvetanov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top