CRUD operations via Ajax problems

2 posts, 1 answers
  1. John
    John avatar
    23 posts
    Member since:
    Nov 2012

    Posted 04 Apr 2013 Link to this post

    I've implemented a simple grid with popup editor templates. CRUD operations are implemented using AJAX calls.

    Problem 1 - Duplicate records being created. 
    I create a first record and it is added fine. When I create a second record, the first one is duplicated (along with the second record being created). I have resolved this issue by setting the ID of the model on creation and returning to client. 

    Problem 2 - Multiple Delete calls
    When I delete one record it works fine. When I delete a second record, two calls are made, this one and the previous one. As the previous record has already been deleted an exception is generated.

    Problem 1 and 2 are both resolved if I refresh the browser after each operation. Is this a known issue? Is there a way to manually refresh the grid after each operation?  
  2. Answer
    John
    John avatar
    23 posts
    Member since:
    Nov 2012

    Posted 04 Apr 2013 Link to this post

    Okay, I've finally found the sticky on the problem. Q1 2013 (v. 2013.1 319) break in Update / Destroy)

    http://www.kendoui.com/forums/mvc/general-discussions/update-destroy-operations-trigger-the-error-event-of-the-datasource-after-updating-to-q1-2013-(v-2013-1-319).aspx
Back to Top