Hi, I'm trying to fill a panel with the content of a partial view using the following :
@(Html.Kendo().PanelBar()
.Name("tPanelBarNavFolder")
.ExpandMode(PanelBarExpandMode.Single)
.HtmlAttributes(new { style = "width:300px" })
.Items(panelbar =>
{
panelbar.Add().Text("My Folder")
.Expanded(true)
.Content(@<text> <div> abc @{ Html.RenderPartial("pvMyFolder", this.Model); } </div>
</text>);
panelbar.Add().Text("Communication").Enabled(false);
})
The content of my partial view is <span>My Folder</span>.
However the partial view is not within the content of My Folder. It shows outside the Panel bar.
The above code working fine in Telerik MVC Extensions(superseded).
@(Html.Kendo().PanelBar()
.Name("tPanelBarNavFolder")
.ExpandMode(PanelBarExpandMode.Single)
.HtmlAttributes(new { style = "width:300px" })
.Items(panelbar =>
{
panelbar.Add().Text("My Folder")
.Expanded(true)
.Content(@<text> <div> abc @{ Html.RenderPartial("pvMyFolder", this.Model); } </div>
</text>);
panelbar.Add().Text("Communication").Enabled(false);
})
The content of my partial view is <span>My Folder</span>.
However the partial view is not within the content of My Folder. It shows outside the Panel bar.
The above code working fine in Telerik MVC Extensions(superseded).