Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

KendoUI: TabStrip HtmlHelper adding PartialVIews

Inside KendoUI in MVC 3, I need to add a partialview for each tab as that tab's content.

How is this done, the docs don't seem to show a way.

like image 427
Ian Vink Avatar asked Dec 04 '25 23:12

Ian Vink


1 Answers

@{
    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());
    })
)
like image 160
Hung Doan Avatar answered Dec 06 '25 17:12

Hung Doan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!