I have a kendo grid, with inline editing. I click on "edit" button, and change some values; on update button click, i handle the event in this way (datasource configuration):
transport: {
update: {
type: method_attribute,
url: update_url,
dataType: data_Type,
contentType: mime_charset,
plete: function (e) {
// here I handle the update event ............
}
}
now, i need to handle the same event (on update button click), even if no values is changed in the row..
I have a kendo grid, with inline editing. I click on "edit" button, and change some values; on update button click, i handle the event in this way (datasource configuration):
transport: {
update: {
type: method_attribute,
url: update_url,
dataType: data_Type,
contentType: mime_charset,
plete: function (e) {
// here I handle the update event ............
}
}
now, i need to handle the same event (on update button click), even if no values is changed in the row..
Share Improve this question asked Oct 15, 2013 at 10:55 pasluc74669pasluc74669 1,7002 gold badges27 silver badges53 bronze badges1 Answer
Reset to default 6Update will not fire unless some value is changed.
1) Change "dirty" property, which you can find on any dataitem. This will make the update fires.
datasource.data()[0].dirty = true;
use edit event to get hold of the dataitem
edit: function(e) {
e.model.dirty = true;
}
2) Id the handler is not related to the actual update of the data, I would probably add onclick event at the actual update button, just to keep it separately.