New to Kendo UI for jQuery? Start a free 30-day trial
Scheduler Sends Multiple Create, Destroy, or Update Requests to the Remote Service
Updated over 6 months ago
Environment
| Product | Progress® Kendo UI® Scheduler for jQuery |
| Operating System | Windows 10 64bit |
Description
While working with the jQuery Scheduler, a create/destroy/update request is sent multiple times to the remote service.
Cause
In this case the server response of the create/destroy/update action is interpreted as an error by the dataSource and the error event of the dataSource is triggered. When such a request fails, the Scheduler dataSource will try to get a valid server response again on a subsequent dataSource sync until the request succeeds.
Solution
Update the remote service in use, so it can return valid responses. Make sure the server response is formatted in the same way as the read action response:
- The
createrequest—The Scheduler expects the created record to be returned to the client side with itsidfield set to a unique value. - The
update/destroyrequest—The Scheduler expects the server to return a valid response, so it can signify success. Such a response, for example, is the updated/deleted event formatted in the same way as thereadaction[{id: 23, title: "some title", start:"2015-10-14T15:00:00.000Z", end:"2015-10-14T17:00:00.000Z" }].