Create/Update Doesn't fire in above Demo. Can any one you suggest.
Here is the error we get locally.
Thanks,
Chatrapathi Chennam
1 Answer, 1 is accepted
0
Rosen
Telerik team
answered on 25 Apr 2014, 08:14 AM
Hello Chatra,
The issue you have described is due to incorrect configuration. As you may know in order DataSource sync operation to be executed, a model should be defined. However, in your sample the schema definition is placed incorrectly outside of the DataSource declaration. Therefore, moving the schema definition to be a child of the DataSource should resolve the issue in question.
dataSource: {
transport: {
/*..*/
},
schema: {
model: {
/*..*/
}
}
}
Also note that assigning data via DataSource data method from within the transport read method is not supported and may result in unexpected results. Instead you should pass the data to the success function passed via the method arguments. More details can be found here.
Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!