<script>
$(document).ready(function () {
$("#gridList").SmartGrid({
dataSource: {
batch: true,
schema: {
data: "Data",
total: "Total"
},
transport: {
type: "odata",
read: {
url: "/cs/exc/Grid",
contentType: "application/json",
type: "POST"
}, parameterMap: function (data, operation) {
return JSON.stringify(data)
},
},
},
groupable: false,
sortable: true,
pageable: {
refresh: true,
pageSizes: true,
buttonCount: 5
},
columns: [
{
field: "NUM",
title: "序号",
width: 150
},
{
field: "BH",
title: "编号",
width: 150
}, {
field: "NAME",
title: "姓名",
width: 150
}, {
field: "SJ",
title: "时间",
width: 150,
template: "#= kendo.toString(kendo.parseDate(SQHYSJ), 'yyyy/MM/dd') #"
},
],
change: OnChange
});
});
</script>