I am running into an issue where the Excel Export from my grid seems to be randomly missing rows. As an example, I can see in Firebug that my REST service is returning 1,735 rows of data. But when I export to Excel, the exported file and the excelExport event only shows 1,728 rows. And that includes the Excel headings, so I should be seeing 1,736. Other examples may be off by 1 or 2 rows. And some are working exactly right. Any thoughts on how to resolve this are appreciated.
I am using serverPaging and Kendo UI 2016.1.125.
excelExport Event
excelExport : function(e) {
// debug
var sheet = e.workbook.sheets[0];
alert(sheet.rows.length);
}
dataSource
var
ds =
new
kendo.data.DataSource({
type:
"json"
,
pageSize:100,
transport: {
read:
"../myurl"
},
serverPaging:
true
,
schema: {
model: {
id:
"rn"
,
fields: {
rn: { type:
"number"
},
invno: { type:
"string"
, editable:
false
},
....
}
// end fields
},
// end model
data:
"invoices"
,
total:
"total"
//have to have this with serverPaging set to true
},
error:
function
(e) {
console.log(
"error ---> Status: "
+ e.status);
}
});
// end datasource
Data Returned from REST Service
{
"total"
: 1735,
"invoices"
:
[
{
"rn"
: 1,
"invno"
:
"12345"
,
...
},
....
{
"rn"
: 1735,
"invno"
:
"67890"
,
...
}
]
}