This code:
Creates this error message:
If schema.total is not defined everything works fine.
Unfortunately we need the total because we use a pageable Grid.
Any help or thoughts on that issue?
An example can be found here: http://dl.dropbox.com/u/105042779/kendo/datasource.html (Please look into the source code or console)
var MyModel = kendo.data.Model.extend();
var MyDataSource = kendo.data.DataSource.extend({
options: {
transport: {
create: {
url: 'dummy.json',
type: 'GET',
dataType: 'json'
},
read: {
url: 'dummy.json',
type: 'GET',
dataType: 'json'
},
update: {
url: 'dummy.json',
type: 'GET',
dataType: 'json'
},
destroy: {
url: 'dummy.json',
type: 'GET',
dataType: 'json'
}
},
schema: {
model: MyModel,
data: 'data',
total: 'total'
}
}
});
var myDataSource = new MyDataSource();
var myModel = new MyModel({
ding: 'dong',
ping: 'pong'
});
myDataSource.add(myModel);
myDataSource.sync();
Creates this error message:
If schema.total is not defined everything works fine.
Unfortunately we need the total because we use a pageable Grid.
Any help or thoughts on that issue?
An example can be found here: http://dl.dropbox.com/u/105042779/kendo/datasource.html (Please look into the source code or console)