Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 424
Ian Vink Avatar asked Jan 14 '23 20:01

Ian Vink


1 Answers

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.

like image 162
Ian Vink Avatar answered Jan 16 '23 09:01

Ian Vink