# Items Binding

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 HtmlHelper
@(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](https://docs.telerik.com/kendo-ui/controls/panelbar/overview#from-html). In this scenario the [`DataBound`](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/panelbareventbuilder#databoundsystemstring) event does not fire.

## See Also

* [Basic Usage of the PanelBar for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/panelbar)
* [Server-Side API of the PanelBar HtmlHelper](https://www.telerik.com/aspnet-mvc/documentation/api/panelbar)
