optimistic concurrency

2 posts, 0 answers
  1. Robert
    Robert avatar
    13 posts
    Member since:
    Oct 2014

    Posted 11 Nov 2014 Link to this post

    Is there anyway to implement optimistic concurrency with the Kendo Grid?
  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 13 Nov 2014 Link to this post

    Hello Robert,

    The concurrency control should happen on the database level. Concurrency control cannot be changed on the client side.

    For examples if there are two users that retrieved a specific record.

    They both modify their local copies and submit them in different time, inside your update action method you will receive the updated record and you need to decide there how concurrency will be resolved. When the second one tries to update you can throw an exception that the record was modified :

    http://blogs.telerik.com/kendoui/posts/13-08-29/handling-server-side-validation-errors-in-your-kendo-ui-grid

    Kind Regards,
    Petur Subev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top