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

Destroy Action not been fired in Controller in Ajax batch edit mode

3 Answers 416 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Francis
Top achievements
Rank 1
Francis asked on 18 May 2017, 06:34 PM

When adding the Destroy command to a column, the .Destroy action does not hit the controller action method.

You can reproduce the bug with your DVDGo sample application by making it InCell editing, .Batch(true), .ServerOperation(false).

 

 

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 23 May 2017, 08:46 AM
Hello Francis,

The described result is expected when batch editing is used.

With batch editing, the Grid will send all requests at once when the save changes button is clicked. This can be observed in our demo as well:

http://demos.telerik.com/aspnet-core/grid/editing

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-batch

Regards,
Stefan
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
0
Francis
Top achievements
Rank 1
answered on 23 May 2017, 01:02 PM
Ok I understand. I just find that, on the end user point of view, when you click delete and confirm the delete with the popup screen it looks / seems like the row has really been deleted and no more actions are required since the row is gone. To me the user will forget to press save. Will find a way to change this.
0
Stefan
Telerik team
answered on 26 May 2017, 06:26 AM
Hello Francis,

In this scenario, I can suggest tо manually call the saveChanges method on the remove event of the Grid. Please have in mind that this will also, save other changes as updates and creating new items, which may not be desired:

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-remove

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-saveChanges

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Francis
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Francis
Top achievements
Rank 1
Share this question
or