This is a migrated thread and some comments may be shown as answers.

Grid Update/Create row doesn't fire with Crud

1 Answer 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chatra
Top achievements
Rank 1
Chatra asked on 23 Apr 2014, 05:22 PM
Hi,

Please find the demo here 

http://jsfiddle.net/8tzgc/136/

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

Sort by
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!
 
Tags
Grid
Asked by
Chatra
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or