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

[Solved] Destroy event not fired after creation

1 Answer 861 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 22 Jun 2018, 10:11 AM

Hi,

I've just implemented the read, update, create, destroy events for my datasource which fire ajax calls to their respective endpoints triggered by buttons on a Kendo UI Grid. However, if I create a record in the grid (and subsequently the datasource) I can see it hitting the end point, if I then delete the same record it does not trigger the destroy event. If a record is created, the page is refreshed then the delete event fires when the button is pressed. I tried adding a datasource read and sync to the success component of the ajax call but this caused an indefinite loop of reading and syncing without completing the required task.

Could you please let me know how I can force the delete trigger to fire even if the datasource assumes the record is only stored locally.

Thanks,

Ben

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 26 Jun 2018, 06:05 AM
Hello, Ben,

Thank you for the information.

The Grid should automatically hit the destroy after the create is successful.

I can assume that the destroy is not returning the expected response.

Please check the expected operations flow in our editing demo:

https://demos.telerik.com/kendo-ui/grid/editing-inline

https://docs.telerik.com/kendo-ui/framework/datasource/crud

If the issue still occurs, please provide an example of the current implementation and I will gladly investigate further.

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