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

Kendo UI Grid - Angular SaveChanges

2 Answers 180 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Danny
Top achievements
Rank 1
Danny asked on 27 Aug 2015, 09:57 PM

Hi,

 

Is it necessary to provide transport CRUD methods on the dataSource Config when using angular and the kendo observable array? I currently have the kendo observable array tracking changes by the user in my controller and a custom keydown handler so when the user hits ENTER my controller will call my external service to update the record data and I am attempting to onSuccess, saveChanges so that the changes become pristine in the underlying dataSource. Currently calling saveChanges on successful response from the PUT request intrinsically calls sync which looks for an update method on the transport object, which I have not defined b/c I don't want to delegate this functionality to the dataSource config object.

 

Thanks!

 

Devin

2 Answers, 1 is accepted

Sort by
0
Danny
Top achievements
Rank 1
answered on 28 Aug 2015, 10:30 PM

Additionally, 

It would be very helpful to the community to provide some working example of remote CRUD operations using angular and the kendo observable array. There seems to be a lack of examples within the documentation. 

 

Thanks!

0
Kiril Nikolov
Telerik team
answered on 31 Aug 2015, 11:05 AM

Hello Danny,

 

In order to update the underlying array you will need to have the transport configuration for the dataSource. If you want to use custom function, maybe this example can help you achieve that:

 

http://docs.telerik.com/kendo-ui/web/grid/how-to/grid-localstorage-crud

 

It shows how to update the internal arrays correctly, after you have updated the remote service as well.

 

Regards,
Kiril Nikolov
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
Danny
Top achievements
Rank 1
Answers by
Danny
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Share this question
or