New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Kendo UI Breadcrumb component

Definition

Constructors

Initializes a new instance of the Breadcrumb class.

C#
public Breadcrumb(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

Indicates whether the Breadcrumb will enable/disable the binding to the location object of the browser on initialization.

C#
public bool? BindToLocation { get; set; }

Defines a name of an existing icon in the Kendo UI Web Font Icons. The icon will be applied as separator between the segments of the Breadcrumb path.

C#
public string DelimiterIcon { get; set; }

Indicates whether the editing functionality of the Breadcrumb will be enabled/disabled.If the option is enabled the path will be editable. Clicking in an empty area of the component will trigger editing mode. Editing mode shows an input showing the value of the component enabling the end user to type a new path.

C#
public bool? Editable { get; set; }

Defines the space in pixels after the last item to stay empty.The gap value is taken into account when items overflow and continues to remain empty.

C#
public double? Gap { get; set; }

Array of items to be rendered in Breadcrumb.

C#
public List<BreadcrumbItem> Items { get; set; }

Defines the text of the root icon title that is displayed within the Breadcrumb.

C#
public BreadcrumbMessagesSettings Messages { get; set; }

Indicates whether the navigation functionality of the Breadcrumb will be enabled/disabled.When navigational is set to false, automatic navigation (changing url location) is disabled by default. In this state, the click event will be prevented and navigation will occur only if programmatic navigation is implemented.When navigational is set to true, the url (path) will be automatically added to the href attribute of the rendered links. In this state, the click event will trigger navigation.

C#
public bool? Navigational { get; set; }

Defines a name of an existing icon in the Kendo UI Web Font Icons. The icon will be applied as the first item(root) of Breadcrumb path.The root icon is clickable and resets the value of the component.

C#
public string RootIcon { get; set; }

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }

Defines the tag from which the component is initialized. Could be "input" or "nav".

C#
public string Tag { get; set; }

Defines the value/path of the component. Each segments is separated by a slash.

C#
public string Value { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)