Running into a weird issue, we're setting up our grids with javascript for this page.
$('#assets-grid').kendoGrid({
dataSource: new kendo.data.DataSource({
transport: {
read: 'application/GetAssetDetails'
},
schema: {
data: function(response) {
var result = [];
if (!response.success && response.message) {
errorAlert(response.message, 'modalNoteLabel', 10000);
}
if (response && response.Data) {
result = response.Data;
}
return result;
},
total: function(response) {
var length = 0;
if (response && response.Data) {
length = response.Data.length;
}
return length;
}
},
pageSize: 10,
serverPaging: false //I added this to fix, also tried serverOperation:false and that didnt work
}),
autoBind: false,
sortable: true,
scrollable: false,
pageable: true,
columns: [
{
field: 'Column',
title: 'olumne',
attributes: {
'title': '#: Column #'
},
headerAttributes: {
'title': 'column'
}
},
{
field: 'Column',
title: 'Column',
attributes: {
'title': '#: Column #'
},
headerAttributes: {
'title': 'Column'
}
},
{
field: 'Column',
title: 'Column',
attributes: {
'title': '#: Column #'
},
headerAttributes: {
'title': 'Column'
}
},
{
field: 'Column',
title: 'Column',
attributes: {
'title': '#: Column #'
},
headerAttributes: {
'title': 'Column'
}
}
],
noRecords: {
template: "No records are found."
}
});
Ive added the section in the Datasource for serverPaging: False.
What was happening is when the user loads the gird it would load fine, when they navigated the pages its fine, however if you looked at the network tab in developer tool bar or monitored events on the server you would notice 503 for the request stating that the id coming back is null. I tried to use serverOperation:false but that was still showing the same issue. I switched it to serverPaging and it seems to be resolved. My question is, Is this correct? Is there something else I am missing that should be done to prevent 503's when navigating paging?