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

Grid update doesn't do anything

3 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rwb
Top achievements
Rank 2
rwb asked on 19 Jan 2016, 02:44 PM

https://jsfiddle.net/7q90wonr/

 

Whatever I try, I just can't get the Update button to do anything!

3 Answers, 1 is accepted

Sort by
0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 19 Jan 2016, 06:45 PM
Hello Richard,

Take a look at this Telerik dojo with an updated version of your sample.  

First, I noticed you had 2 sets of schema, which will cause issues when trying to update.  

The other problem was your Update function.  Here is the code I replaced to update your Kendo Grid:
transport: {
....
 update: function(e) {
            var updatedItem = e.data;
            e.success();
            alert('update');
        }
...
}
The updated data item is received as an object in e.data, and the success or error method of a function argument must be executed at the end. 

For more information pertaining to updating a grid, take a look at this documentation.

Regards,
Patrick
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
rwb
Top achievements
Rank 2
answered on 20 Jan 2016, 10:17 AM
Thanks, the two schemata seem to have been the problem.
0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 20 Jan 2016, 09:13 PM
Hi Richard,

Glad everything is working!  Let me know if you have any questions.

Regards,
Patrick
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
rwb
Top achievements
Rank 2
Answers by
Patrick | Technical Support Engineer, Senior
Telerik team
rwb
Top achievements
Rank 2
Share this question
or