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

Splitter RenderPartial

1 Answer 271 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Simon831
Top achievements
Rank 1
Simon831 asked on 14 Aug 2012, 02:23 PM
What is the correct way to use RenderPartial in a splitter?

@(Html.Kendo().Splitter()
  .Name("vertical")
  .Orientation(SplitterOrientation.Vertical)
  .Panes(verticalPanes =>
  {
      verticalPanes.Add()
          .Size("100px")
          .HtmlAttributes(new { id = "top-pane" })
          .Collapsible(false)
           
          .Content(
                @Html.RenderPartial("HeaderPartialView");
          );

1 Answer, 1 is accepted

Sort by
0
Darron
Top achievements
Rank 1
answered on 21 Feb 2014, 10:15 AM
First create an ActionMethod that returns the partial

public ActionResult Tasks()
        {
            return PartialView("_Tasks");
        }


Then call .ToString() on the action

@(Html.Kendo().Splitter()
    .Name("splitter")
    .Panes(panes =>
        {
            // load partial
            panes.Add().Content( Html.Action("Tasks").ToString() );
Tags
Splitter
Asked by
Simon831
Top achievements
Rank 1
Answers by
Darron
Top achievements
Rank 1
Share this question
or