This is a migrated thread and some comments may be shown as answers.

[Solved] RenderConent in a Splitter

0 Answers 59 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
CodeAddict
Top achievements
Rank 1
CodeAddict asked on 25 Aug 2011, 06:33 PM
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>
Tags
Splitter
Asked by
CodeAddict
Top achievements
Rank 1
Share this question
or