Hi,
I am sending an ajax request inside datasource update method. How can stay in edit mode if this request fails ?
Following is a sample code snippet of mine .
this._datasource = new kendo.data.DataSource({
transport: {
create: create,
read: read,
update: update,
destroy: destroy
}
})
function update(options) {
that._api.put(resource, inputData)
.done(function (data) {
})
.fail(function (error) {
that._datasource.cancelChanges();
});
}
I am sending an ajax request inside datasource update method. How can stay in edit mode if this request fails ?
Following is a sample code snippet of mine .
this._datasource = new kendo.data.DataSource({
transport: {
create: create,
read: read,
update: update,
destroy: destroy
}
})
function update(options) {
that._api.put(resource, inputData)
.done(function (data) {
})
.fail(function (error) {
that._datasource.cancelChanges();
});
}