DataSource CRUD Local / Updates on Server

2 posts, 0 answers
  1. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 02 Apr 2015 Link to this post


    I have read the documentation on using DataSource for CRUD locally. However, I am wondering can I use DataSource for local CRUD and then later the user presses on Save button on the form whereby I send all changes (updates, destroyed and created) in one AJAX call to server and then later update the data in the DataSource to signal those that were created with new Ids, updates, and removed ones?

    In other words, I am hoping to use DataSource for local storage and data management, however, I handle updating the server and then back updating DataSource.

  2. Alexander Popov
    Alexander Popov avatar
    1436 posts

    Posted 06 Apr 2015 Link to this post

    Hi Bilal,

    You can check this example, which illustrates how similar behavior could be achieved. Another approach you can try is to use the Offline mode of the DataSource.

    Alexander Popov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top