@using Kreta.Web.Models.EditorTemplates @model PanelBarBaseModel @(Html.Kendo().PanelBar() .Name(Model.PanelName) .ExpandMode(Model.ExpandMode) .Animation(animation => animation.Enable(Model.Animation)) .BindTo(Model.ChildModels, mapping => { mapping.For(binding => binding.ItemDataBound((panel, childModel) => { panel.Text = childModel.PartialViewTitle; panel.Template.InlineTemplate = @ @Html.Partial(childModel.PartialViewName, childModel.GenericPanelBarModel) ; })); }) )