KendoUI: TabStrip HtmlHelper adds PartialVIews

Inside KendoUI in MVC 3, I need to add a partial view for each tab as the content of that tab.

How it's done the docs don't seem to show a way.

+3


source to share


1 answer


@{
    var partialData = Html.Partial("/Views/Templates/_p_myView.cshtml");
}
@(Html.Kendo().TabStrip()
    .Name("Contents from partital")
    .Items(tabstrip =>
    {
        tabstrip.Add().Text("Hello Partial")
            .Content(partialData .ToString());
    })
)

      



+5


source







All Articles