I'm pulling my hair out with the the 'slice' error on something that looks so simple, using the code below
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "helper.php?action=data",
dataType: "json"
}
},
schema: {
data: "zzz"
}
});
dataSource.bind("error", function(e) {
alert('error');
});
dataSource.fetch(function() {
alert('fetch complete');
});
and my helper returns this json:
{"zzz":{"items":[{"type":"button","text":"Test"}]}}
I have tried with and without the schema set - please help?