We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Delete Action not deleting in SQL Server database - UI changes locally to show it "disappearing" but on page refresh, data is still there

Hi all,

I hope you are all well.

I'm having a bit of an issue with the Delete action.

I'm following this guide in the documentation:- https://blazor.syncfusion.com/documentation/common/data-binding/bind-entity-framework - and everything is working perfectly (like the add, update etc) but right at the end when I have implemented the delete functionality via clicking the delete button and it deleting the data entry in the database by id, it shows the entry deleting in the browser, but when refreshing the page the data entry is still there and in the database it doesn't delete.

Please see attached gif for reference- it shows me deleting an entry from the database but then when i refresh the page, the entry comes back and isn't deleted!

I hope you can help me :)

Many thanks

Attachment: gif_d527733f.rar

4 Replies 1 reply marked as answer

SP Sarveswaran Palani Syncfusion Team April 6, 2023 04:27 AM UTC

Hi Tinkerer,

Greetings from Syncfusion support.

From your query, We suspect that you’re facing issue in deleting operation. We have prepared sample based on your requirement, but we’re unable to reproduce any issue while deleting. We request you to share video demo of an issue or share the issue reproducible sample to us. It’ll be helpful for us to further validate your query and provide solution ASAP from our end.


Attachment: BlazorAppEFFK_b801f6f9.zip

Marked as answer

TD Tinkerer Duty April 6, 2023 11:34 AM UTC

Hello Sarveswaran :)

Thanks for the swift response.

From checking your file out and making some additional changes, nothing seems to be reflectingin the database.

I'm still clicking on delete and nothing is changing; the browser ui changes but not after refreshing and in the database.

Please see video of my code:-


...the gif I've sent over in the previous zip is it looks like on the browser side when clicking delete and then refreshing the page.

I hope you can help me and I look forward to hearing from you!

Many thanks

TD Tinkerer Duty April 6, 2023 03:13 PM UTC

Hello again,

I hope this message finds you well.

I've managed to resolve this problem! - It was such a simple fix yet I went down rabbit whole after rabbit whole- I ended up learning so much out of this process in spite of this so all turned out brilliantly!

Many thanks for all your help anyway!

Kind regards

PS Prathap Senthil Syncfusion Team April 7, 2023 06:21 AM UTC

Thanks for the update,

We are happy to hear that the issue has been resolved on your end. If you have any further questions, please do not hesitate to reach out to us.

Live Chat Icon For mobile
Up arrow icon