BahaiResearch.com BahaiResearch.com - 2 months ago 20
ASP.NET (C#) Question

Kendo TabStrip: Rendering Action into tab in MVC 4

I've been trying to render and Action @Html.RenderAction(...) into the .Text() of a Kendo Tab Strip with out success.

Is there a way to render a full action into a tab?

Answer

I found it:

@(Html.Kendo().TabStrip()
  .Name("tabMain")
  .Items(items =>
      {
          items.Add()
               .Text("My Tab Title")
               .Content(Html.Action("Index","MyChildController").ToString());
      })
  )

Trick is to call .ToString on the Html.Action call.