我在局部视图中有Kendo Tabstrip控件,在该Tabstrip中有Kendo Grid。
@(Html.Kendo().TabStrip()
.Name("tabstrip1")
.Items(ts =>
{
ts.Add()
.Text("Tab Strip 1")
.Content(@<text>
@(Html.Kendo().Grid<testproject.Class.DiscussionBoard>()
.Name("kendogrid1")
.Columns(columns =>
{
columns.Bound(p => p.Name).Title("Name");
columns.Bound(p => p.CreatedBy).Title("Created By");
columns.Bound(p => p.Subject).Title("Subject");
columns.Bound(p => p.CommentsDescription).Title("Comments/Description");
columns.Bound(p => p.ModifiedOn).Title("Modified On ");
})
.NoRecords("No Recod Exists!!")
)
</text>);
})
)
我尝试通过网络进行搜索,但没有找到太多有关此问题的信息
ASP MVC 5项目
帮助总是值得赞赏的
谢谢
用途GridBuilder.ToHtmlString()
:
.Content(Html.Kendo().Grid<testproject.Class.DiscussionBoard>()
.Name("kendogrid1")
.Columns(columns =>
{
columns.Bound(p => p.Name).Title("Name");
columns.Bound(p => p.CreatedBy).Title("Created By");
columns.Bound(p => p.Subject).Title("Subject");
columns.Bound(p => p.CommentsDescription).Title("Comments/Description");
columns.Bound(p => p.ModifiedOn).Title("Modified On ");
})
.NoRecords("No Recod Exists!!")
.ToHtmlString()
)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句