Reputation: 480
I try to create a dynamic grid based on dummy data first called dataSourceMatrix
. Grid load fine with dummy data's without any error and display the grid. But when I try to read the data from kendo dataSource
it display nothing. Both data's return a same result. Any idea why?
Here a full demo for my situation
Upvotes: 0
Views: 34
Reputation: 1516
You seem to have no dateFields
, so parseFunction
is undefined, and therefore not callable.
Try this way:
parseFunction = function (response) {
if (dateFields.length >= 0) {
for (var i = 0; i < response.length; i++) {
for (var fieldIndex = 0; fieldIndex < dateFields.length; fieldIndex++) {
var record = response[i];
}
}
}
// console.log(response);
return response;
};
Upvotes: 1