or
var panelbar = $("#HomePanelBar").data("kendoPanelBar");
panelbar.reload();
@(Html.Kendo().PanelBar()
.Name("HomePanelBar")
.HtmlAttributes(new { style = "width:400px;" })
.ExpandMode(PanelBarExpandMode.Single)
.Items(panelBar =>
{
panelBar.Add()
.Text("Notification")
.HtmlAttributes(new { id = "item1" })
.Expanded(true)
.LoadContentFrom("_Announcement", "Help");
})
)
@( Html.Kendo().Window()
.Name("popupSplitter")
.Title("Popup Splitter")
.Draggable(true)
.Modal(true)
.Content(
@<
text
>
<
div
>
@RenderSplitter()
</
div
>
</
text
>
)
.Width(600)
.Height(450)
.Visible(false)
)
@helper RenderSplitter()
{
@Html.Kendo().Splitter()
.Name("MySplitter")
.Orientation(SplitterOrientation.Horizontal)
.HtmlAttributes(new { style = "width: 100%; height: 400px; " })
.Panes(hPanes =>
{
hPanes.Add()
.Size("200px")
.MinSize("100px")
.Content(
@<
text
>
@RenderTreeView()
</
text
>
)
.HtmlAttributes(new { id = "left_pane" });
hPanes.Add()
.Scrollable(true)
.HtmlAttributes(new { id = "right_pane" });
.Content(
@<
text
><
p
>test</
p
></
text
>
);
})
}
<button class=
"k-button"
id=
"btnAdd"
onclick=
"addSomething()"
><span class=
"k-icon k-add"
></span></button>
function
addSomething() {
var
window = $(
"#popupSplitter "
).data(
"kendoWindow"
);
window.center();
window.open();
}