var data = new kendo.data.DataSource({
serverPaging: false,
pageSize: 5,
data: [
{firstName: 'John', lastName: 'A', Age: '10', Country: 'USA'},
{firstName: 'Max', lastName: 'B', Age: '20', Country: 'UK'},
{firstName: 'Luke', lastName: 'C', Age: '77', Country: 'Russia'},
{firstName: 'Raj', lastName: 'D', Age: '55', Country: 'France'},
{firstName: 'Peter', lastName: 'E', Age: '5', Country: 'Ghana'},
{firstName: 'Stan', lastName: 'F', Age: '51', Country: 'USA'},
{firstName: 'Mike', lastName: 'G', Age: '21', Country: 'India'},
{firstName: 'Lily', lastName: 'H', Age: '30', Country: 'USA'},
{firstName: 'Lal', lastName: 'B', Age: '20', Country: 'UK'},
{firstName: 'Sam', lastName: 'G', Age: '21', Country: 'India'},
{firstName: 'Sean', lastName: 'G', Age: '47', Country: 'Aus'},
]
});
$('#grid').kendoGrid({
dataSource: data,
columns: [
{
field: "firstName",
title: "firstName",
width: "120px"
}, {
field: "lastName",
title: "lastName",
width: "120px"
}, {
field: "Age",
title: "Age",
width: "120px"
}, {
field: "Country",
title: "Country",
width: "120px"
}
],
pageable: true,
dataBound: function () {
this.expandRow(this.tbody.find("tr.k-master-row").first());
}
});
<head>
<title>Kendo UI Snippet</title>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.2.516/styles/kendo.common.min.css"/>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.2.516/styles/kendo.rtl.min.css"/>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.2.516/styles/kendo.silver.min.css"/>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.2.516/styles/kendo.mobile.all.min.css"/>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2018.2.516/js/kendo.all.min.js"></script>
</head>
<body>
<div id="grid"></div>
</body>