Destroy event not fired after creation

2 posts, 0 answers
  1. Ben
    Ben avatar
    2 posts
    Member since:
    May 2017

    Posted 22 Jun Link to this post

    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

  2. Stefan
    Admin
    Stefan avatar
    2022 posts

    Posted 26 Jun Link to this post

    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.
Back to Top