I don't know what is the cause of the error. Maybe someone might have a solution with my issue.
Here is my sample data
Here is my code
function mapDataSource2(model, records) {
let dataSource = new kendo.data.DataSource({
transport: {
read: function (options) {
options.success(records); <------ IF I REMOVE THIS, THE ERROR WILL NOT SHOW
},
parameterMap: function (options, operation) {
if (operation !== "read" && options.models) {
return { models: kendo.stringify(options.models) };
}
}
},
autoSync: true,
schema: {
model: model,
total: function (data) {
return $(data).length;
}
},
pageSize: 50
});
return dataSource;
}
thanks in advance
Hi Walter,
I used the provided snippet to test locally with dummy data, but I did not manage to replicate the issue. Coud you please take a look at the Dojo linked here and let me know if I am missing something?
You can also try to replace the data returned on your side in the records array in the Dojo and test if the Grid will be loaded as expected.
Regards,
Neli