I've got a grid with InCell editing and I have only the Add and Save buttons in the header. The grid is in an iframe. The trouble I am having is when I click the batch save button the controller action in the Datasource is not getting called.
David, thanks for the help but adding [AcceptVerbs("Post")] did not work.
answered on 13 Mar 2019, 11:51 AM
Could you please elaborate if there are any errors in the browser's console or any requests at all when you hit the "Save" button? As for the Grid's and the Action method configuration, it seems correct (after adding the AcceptVerbs). You could refer to our online demo (EditingController.cs):
I have noticed that you are manually adding items to the DataSource, but since there is no "Create" action method defined in the Grid's DataSource, those records will never be added to the database and no ID will be returned for them, which means that when you try to edit them, the DataSource will still handle them as new and will try to call the "Create" method and not the "Update". With that in mind, please define the "Create" as well and return the unique ID's, along with the model, for each record.
Let me know if this resolves the issue that you are facing.
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.