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

optimistic concurrency

1 Answer 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 11 Nov 2014, 07:12 PM
Is there anyway to implement optimistic concurrency with the Kendo Grid?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 13 Nov 2014, 04:19 PM
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.

 
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or