4 Answers, 1 is accepted
0
Hello Andrey,
Items could be set programmatically through the items() method:
<script>
var breadcrumb = $("#breadcrumb").kendoBreadcrumb({
}).getKendoBreadcrumb();
breadcrumb.items([
{ type: "rootitem", text: "Home", showText: true, showIcon: false }
]);
</script>
In case you have any additional questions, please let me know.
Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0

Andrey
Top achievements
Rank 1
Veteran
answered on 28 Jan 2020, 02:19 PM
Hello Dimitar!
Thank you for reply. Actually i mean how i can append new items dynamically? Something like "breadcrumb.items.push({ type: "rootitem", text: "Home", showText: true, showIcon: false })"
0
Accepted
Hello Andrey,
Thank you for the clarification provided.
There is no dedicated method for dynamically adding items in the Breadcrumb. However, this could be easily achieved by pushing the desired item to the items collection and the calling the refresh() method:
breadcrumb.items().push({ type: "item", text: "Inbox", showText: true, showIcon: false });
breadcrumb.refresh();
Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0

Andrey
Top achievements
Rank 1
Veteran
answered on 30 Jan 2020, 12:12 PM
Yes, thank you! that exactly what i mean.