I have a grid with editable: "inline" hooked on a datasource pointing to a asp.net mvc controller for its update: update: { url: '@Url.Action("Update", "Account")', contentType: "application/json", type: "POST" }.
I would like the Update method on the AccountController to return json ( public JsonResult Update(int id, string name() { ... return Json() } ), however if the Update method returns anything but a single digit I'm getting the client side error: "Uncaught SyntaxError: Unexpected number" and clicking the script reference gives me this code: (function(d,value /**/) { d.0=value })
What is wrong?