Breadcrumb Collapse Modes
You can specify how the Breadcrumb items are visualized when their total width exceeds the width of the component through the CollapseMode
attribute of the Breadcrumb. It takes a member of the BreadcrumbCollapseMode
enum and provides the following options:
Auto
(default) - Items are automatically collapsed based on the width of the Breadcrumb. The first and last item always remain visible.Wrap
— Items are wrapped on multiple rows.None
— All items are expanded on a single row and a horizontal scrollbar will appear if needed.
@* This example demonstrates how to change the default Breadcrumb CollapseMode to Wrap *@
<div style="width:400px">
<TelerikBreadcrumb CollapseMode="@BreadcrumbCollapseMode.Wrap"
Data="@Items">
</TelerikBreadcrumb>
</div>
@code {
public IEnumerable<BreadcrumbItem> Items { get; set; }
protected override void OnInitialized()
{
Items = Enumerable.Range(1, 10).Select(x => new BreadcrumbItem { Text = $"Item {x}" }).ToList();
}
public class BreadcrumbItem
{
public string Text { get; set; }
}
}