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

Deleting rows with destroy command

1 Answer 1488 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 22 Apr 2013, 05:43 PM
Hi, when I delete a row from a grid using a destroy command column, should it filter directly through to the dataSource's destroy transport? or do I have to manually code a remove event handler on the grid?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 23 Apr 2013, 06:46 AM
Hi Jack,

The behaviour depends on the edit mode that you use. In case of inline and popup editing, the deleted item will be immediately submitted through the destroy transport of the DataSource.

In case of batch (incell) editing, the deleted item will be send to the server, when the user presses "Save changes" button or the saveChanges method is called. If you want changes to be synchronized automatically, you should set autoSync option of the DataSource to true.

Behaviour can be tested on Grid editing demos:

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Tom
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or