Hi, I'm trying to to fill a panel item with the content of a partial view using:
@{ Html.Telerik().PanelBar()
.Name("PanelBar")
.HtmlAttributes(new { style = "width: 300px; float: left; margin-bottom: 30px;" })
//.ExpandMode((PanelBarExpandMode)Enum.Parse(typeof(PanelBarExpandMode), (string)ViewData["expandMode"]))
.SelectedIndex(0)
.Items(item =>
{
item.Add()
.Text("Submission Information")
.Content(() =>
{
@Html.DisplayForModel("_PartialViewName.cshtml");
});
})
.Render();
}
The problem is that the @Html.DisplayForModel("_PartialViewName.cstml") does not display it's content. Note the _PartialViewName.cshtml view is in the same directory as the view it is being displayed in.
Thanks,
Carlos