This question is locked. New answers and comments are not allowed.
I have just started a new project with very little complexities. Trying to setup the layout with a splitter and a RenderBody html helper. Everything works beautifully except it doesn't render the body. I have tried multiple ways with no luck.
Thanks in advance!
_Layout.cshtml:
<body>
@{
Html.Telerik().Splitter().Name("HeaderWell")
.Orientation(SplitterOrientation.Vertical)
.Panes(vPanes =>
{
vPanes.Add()
.Size("47px")
.Collapsible(false)
.Content(@<div style="height: 100%; width:100%; background-image:url('Content/Layout/banner.png');background-repeat:no-repeat;background-color:#FAE9CA"></div>);
vPanes.Add()
.Scrollable(false)
.Content(()=>Html.Telerik().Splitter().Name("BodyWell")
.HtmlAttributes(new { style = "height: 100%; width: 100%; border: 0; overflow: hidden;" })
.Orientation(SplitterOrientation.Horizontal)
.Panes(hPanes =>
{
hPanes.Add()
.Size("275px")
.Collapsible(true)
.LoadContentFrom("_Navigation", "Home");
hPanes.Add()
.Size("100%")
.Scrollable(false)
.Collapsible(false)
.Content(() => { @RenderBody(); });
}).Render());
})
.Render();
}
@(Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true)))
</body>
Thanks in advance!
_Layout.cshtml:
<body>
@{
Html.Telerik().Splitter().Name("HeaderWell")
.Orientation(SplitterOrientation.Vertical)
.Panes(vPanes =>
{
vPanes.Add()
.Size("47px")
.Collapsible(false)
.Content(@<div style="height: 100%; width:100%; background-image:url('Content/Layout/banner.png');background-repeat:no-repeat;background-color:#FAE9CA"></div>);
vPanes.Add()
.Scrollable(false)
.Content(()=>Html.Telerik().Splitter().Name("BodyWell")
.HtmlAttributes(new { style = "height: 100%; width: 100%; border: 0; overflow: hidden;" })
.Orientation(SplitterOrientation.Horizontal)
.Panes(hPanes =>
{
hPanes.Add()
.Size("275px")
.Collapsible(true)
.LoadContentFrom("_Navigation", "Home");
hPanes.Add()
.Size("100%")
.Scrollable(false)
.Collapsible(false)
.Content(() => { @RenderBody(); });
}).Render());
})
.Render();
}
@(Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true)))
</body>