KendoUI: TabStrip HtmlHelper adding PartialVIews

2019-05-10 23:29发布

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.

1条回答
【Aperson】
2楼-- · 2019-05-10 23:39
@{
    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());
    })
)
查看更多
登录 后发表回答