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

Destroy Response

1 Answer 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 10 May 2012, 11:17 PM
I'm using django 1.2 and a variation of https://github.com/tnajdek/django-kendoui-backend that i modified to work with 1.2.

What do I return back from the server for a destroy request? All the CRUD services appear to be working properly except the destroy. I believe it is because I'm not returning the proper response from the server. It deletes the item properly, but the next time I update or do anything dealing with the CRUD services, it tries to delete the item again so I think the DataSource is not realizing that it was deleted properly so it tries again on the next call.

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 15 May 2012, 01:55 PM
Hi David,

Generally speaking when you perform destroy operation you can return just an empty result (status 200 OK) to notify the Grid the delete has completed successfully.

Greetings,
Petur Subev
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
David
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or