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

Offline data source with add/update errors using odata, web api 2 and local storage

1 Answer 26 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 16 Aug 2015, 03:39 AM

Hello,

 I have been prototyping offline storage with kendo.  

I was able to follow this example and get read to work from local storage with odata.
http://telerikhelper.net/2015/03/05/kendo-ui-data-source-offline-storage-odata-v2-cannot-read-data-from-offline-storage/

However, when I go to update the server by switching to online I run into several problems.

1.  I have to manually delete a __state__ field. 
2.  There seems to always be one blank record in local storage that have to exclude.  Not sure why it is there.
3.  Fails validation errors.

Are there any examples of offline odata sources synching with the server? 
Ideally, I could find an example without a grid but otherwise an update of the grid in the sample project "odata-v4-web-api-binding" showing offline sync would be very helpful.

jb

 

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 19 Aug 2015, 07:12 AM

Hello Patrick,

I am afraid that the issue is not a known one, nor is reproducible in our online demos. I also prepared and attached a sample project with OData that works with online/offline mode of the DataSource. 

When performing updates in offline mode and then go to online mode the DataSource automatically makes a request in order to sync the changes with the server. After that I am not able to see the __state__ field anymore. 

Could you please elaborate a bit more about the blank record in the local storage and the validation errors? Please modify the attached project in order to replicate the described issue and send it back to us for further investigation. 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Data Source
Asked by
Patrick
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or