再次分页不起作用,直到我单击列标题进行排序,然后分页似乎工作正常。
<script type="text/javascript">
$(document).ready(function () {
$('#reportContainer').load('Reports/Scaffold.html', function () {
var dataSource = new kendo.data.DataSource({
transport: {
read: {
type: "POST",
url: Reports.ServiceURL.MyService,
dataType: "JSON",
contentType: "application/json",
data: { myParam: "1" },
serverPaging: true,
serverSorting: true
},
parameterMap: function (data, operation) {
return kendo.stringify(data);
}
},
batch: true,
pageSize: 50,
schema: {
data: "d"
}
});
$("#allGrids").kendoGrid({
dataSource: dataSource,
sortable: true,
pageable: true,
filterable: false,
height: 400,
columns: myModel
});
});
});
</script>