Telerik UI for ASP。NET MVC?下载30天免费试用

层次结构

Grid通过以分层方式显示表数据,提供了可视化父记录和子记录之间关系的选项。

  • 要在Grid HtmlHelper中实现层次结构,请使用ClientDetailTemplateId ()方法,并根据父键字段值筛选子表中的记录。有关可运行的示例,请参阅演示如何在网格中使用层次结构
@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid)。Bound(e => e. firstname).Width(130);列。Bound(e => e. lastname).Width(130);列。边界(e => e. country).Width(130);列。Bound(e => e. city).Width(110);列。Bound(e => e. title);}) .Sortable() .Pageable() .Scrollable() .ClientDetailTemplateId("template") .HtmlAttributes(new {style = "height:600px;" }) .DataSource(dataSource => dataSource .Ajax() .PageSize(6) .Read(read => read.Action("HierarchyBinding_Employees", "Grid")) ) ) 

另请参阅

在本文中
Baidu
map