Good Day
Is there have any reference material or demos that show how I can construct a breadcrumb based on the values in a self-referencing table.
It's for product categories and can have variable depths.
Or even perhaps the suggested methodology for this if there is no reference material readily available.
Hi @DarrenW,
The breadcrumb component does not support data-binding. It is usually used for page navigation which doesn't require a database. In any case you can use a for loop to dynamically add items to it:
<RadzenBreadCrumb>
@foreach (var item in data)
{
<RadzenBreadCrumbItem Path="@item.Path" Text="@item.Text" />
}
</RadzenBreadCrumb>
To do this in Radzen you need to use the HTML component.
That works exactly as required, thank you.