Update/Destroy operations trigger the error event of the dataSource after updating to Q1 2013 (v. 2013.1 319)

Thread is closed for posting
1 posts, 0 answers
  1. Kendo UI
    Kendo UI avatar
    331 posts
    Member since:
    Aug 2011

    Posted 27 Mar 2013 Link to this post

    There is a breaking change with the new version of jQuery which affects the Kendo Q1 2013 version 2013.1.319

    Since the empty result returned from the server in case everything is executed properly on the server side for the update and destroy requests, the error event of the dataSource is triggered because the empty result is not valid JSON.

    The suggested resolutions when using the MVC Extensions are:
    • Use the Latest Internal Build version 2013.1.327
    • Change the response of the Update/Destroy actions from just serializing the ModelState to:
      return Json(ModelState.IsValid ? new object(): ModelState.ToDataSourceResult());

Back to Top