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

Cancel on editing Popup deletes the row

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fred
Top achievements
Rank 1
Fred asked on 04 Dec 2013, 01:19 PM
Kendo Ui Grid: When I choose cancel on Popup editing, the entire row is deleted.
This happens only with newly added rows, old ones don't get deleted.

to reproduce this => http://uicod.com/c60.cod

1 add a new row
2 then click "Edit" and "Cancel".

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Kiril Nikolov
Telerik team
answered on 05 Dec 2013, 08:22 AM
Hello Fred,

The problem comes from the fact that when local data is used, when new item is created it is not automatically added to the initial array. In order to overcome this you will need to create custom transport functions that will handle the CRUD operations. Please check this example, showing a possible implementation:

http://jsbin.com/OxOWiFA/1/edit

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