New to Telerik UI for ASP.NET Core? Download free 30-day trial

ASP.NET Core PanelBar Templates

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
templates.cshtml
TemplatesController.cs
PanelBarItemViewModel.cs
PanelBarRepository.cs
templates_TagHelper.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

Many use cases require a customized look and feel or to display an option differently based on a specific condition. For example, if you have a PanelBar bound to remote data, you may need to flag some of the items based on the value of a specified Model property. In such scenarios, it comes in handy to use a custom template to modify the appearance of each PanelBar item dynamically.

This demo shows how to render the PanelBar items through an external Kendo UI Template by using an if-else statement to identify the child items and add a Delete link or icon. The logic for deleting child items is implemented with jQuery after the PanelBar initialization.

Additional Apps

This PanelBar example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources