我有两张表格,其中包含以下ID wage-table
和wage-sub-table
。它们是HTML表,需要在kendo hieracrhy中包含子表。这就是我的javascript
$(document).ready(function() {
var grid = $("#wage-table").kendoGrid({
dataSource: {
pageSize: 15
},
sortable: true,
pageable: true,
filterable: true,
groupable: true,
scrollable: false,
resizable: true,
detailInit: detailInit
}).data("kendoGrid");
});
function detailInit(e) {
$("<div/>").appendTo(e.detailCell).kendoGrid({
dataSource: {
pageSize: 15
},
sortable: true,
pageable: true,
filterable: true,
groupable: true,
scrollable: false,
resizable: true
});
}
如何使子表数据在嵌套层次结构表中呈现?