init
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
@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<PanelBarChildModel>(binding => binding.ItemDataBound((panel, childModel) =>
|
||||
{
|
||||
panel.Text = childModel.PartialViewTitle;
|
||||
panel.Enabled = childModel.Enabled;
|
||||
panel.Template.InlineTemplate = @<text>
|
||||
@Html.Partial(childModel.PartialViewName, childModel, new ViewDataDictionary { { "Data", childModel.Data } })
|
||||
</text>;
|
||||
}));
|
||||
})
|
||||
)
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$(".k-state-disabled").each(function () {
|
||||
$(this).addClass("disabledItem");
|
||||
})
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user