KendoUI:TabStrip HtmlHelper 添加 PartialViews [英] KendoUI: TabStrip HtmlHelper adding PartialVIews
本文介绍了KendoUI:TabStrip HtmlHelper 添加 PartialViews的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 MVC 3 中的 KendoUI 中,我需要为每个选项卡添加一个局部视图作为该选项卡的内容.
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.
推荐答案
@{
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());
})
)
这篇关于KendoUI:TabStrip HtmlHelper 添加 PartialViews的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文