KendoUI: TabStrip HtmlHelper adding PartialVIews

前提是你 提交于 2019-12-07 13:20:18

问题


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:


@{
    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());
    })
)


来源:https://stackoverflow.com/questions/14904859/kendoui-tabstrip-htmlhelper-adding-partialviews

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!