or
<
div
id
=
"grid"
></
div
>
<
script
>
$(document).ready(function () {
var dataSource = new kendo.data.DataSource({
type: "odata",
transport: {
}
});
var element = $("#grid").kendoGrid({
dataSource: dataSource,
columns: ["FirstName", "LastName"],
height: 450,
detailInit: detailInit,
dataBound: function () {
this.expandRow(this.tbody.find("tr.k-master-row").first());
}
});
});
function detailInit(e) {
$("<
div
/>").appendTo(e.detailCell).kendoGrid({
dataSource: dataSource,
/*dataSource: {
type: "odata",
transport: {
}
},*/
columns: ["FirstName", "LastName"],
scrollable: false
});
}
</
script
>