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

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    29 posts
    Member since:
    Apr 2014

    Posted 15 Aug 2015 Link to this post

    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

     

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 19 Aug 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top