It seems like the event.action "add" is a bit different from the "itemchange". The "itemchange" event does what it should do but the "add" only inserts the values and the change routine is not fired, is there a way to fire the "itemchange" after an "add" to update the row ?
1 Answer, 1 is accepted
0
Alexander Popov
Telerik team
answered on 28 Jul 2014, 07:27 AM
Hi Stefan,
I am not sure I understand your question correctly. Basically, the change event is triggered on "add" as well and you can get the item and modify it. For example:
dataSource = new kendo.data.DataSource({
change: function(e){
if(e.action == "add"){
e.items[0].set("ProductName", "TEST");
}
},
Please, let me know if I am missing something.
Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!