New to Telerik UI for ASP.NET CoreStart a free 30-day trial

Items Binding

Updated on Oct 24, 2025

The PanelBar enables you to declare its items and the properties of each item within the helper declaration.

The following example demonstrates how to configure the PanelBar items using the Items() configuration.

Razor
@(Html.Kendo().PanelBar()
    .Name("panelbar") // The name of the PanelBar is mandatory. It specifies the "id" attribute of PanelBar's HTML element.
    .Items(items =>
    {
        items.Add().Text("Item 1").Expanded(true).Selected(true);
        items.Add().Text("Item 2");
    })
)

When the Items configuration is used, the component generates internally the required HTML markup used for its initialization. In this scenario the DataBound event does not fire.

See Also

In this article
See Also
Not finding the help you need?
Contact Support