Telerik.Cms.Web.UI.Breadcrumb in 3.7 - where is it in 4.1?
I have the following code to display breadcrumb in 3.7
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web;namespace Controls public class HomeBreadcrumb : Telerik.Cms.Web.UI.Breadcrumb private bool mRenameFirstDisplayedItem; protected override void OnLoad(EventArgs e) base.OnLoad(e); // Initialize variables. this.CurrentNodeStyle.CssClass = this.RootNodeStyle.CssClass = this.PathSeparatorStyle.CssClass = this.NodeStyle.CssClass = "crumb"; this.CssClass = "crumbs"; protected override void InitializeItem(System.Web.UI.WebControls.SiteMapNodeItem item) base.InitializeItem(item); if (item.ItemType == System.Web.UI.WebControls.SiteMapNodeItemType.Root) if (this.ShowStartingNode) item.SiteMapNode.Title = "Home"; else this.mRenameFirstDisplayedItem = true; if (item.ItemType == System.Web.UI.WebControls.SiteMapNodeItemType.Parent || item.ItemType == System.Web.UI.WebControls.SiteMapNodeItemType.Current) if (!this.ShowStartingNode && this.mRenameFirstDisplayedItem) item.SiteMapNode.Title = "Home"; this.mRenameFirstDisplayedItem = false; Nevermind...found it. Using System.Web.UI.WebControls.SiteMapPath in place ofTelerik.Cms.Web.UI.Breadcrumb. Now I'm getting specified method is not supported:item.SiteMapNode.Title = "Home";
Hello Ron,
If you are plan to implement a breadcrumbs navigation control please refer to the following article where I have posted a sample code which works flawlessly when creating such type of control.
All the best,
Victor Velev
the Telerik team