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

Refresh data of grid after editing using a custom command dialog doesn't work

I am using a grid that populates with data and using a custom command column to bring up a dialog that contains fields that can be edited (that do not exist in the grid as columns). I have a save button on the dialog that saves the changes back to the database but the grid does not refresh. I have referenced the post below in my code that should trigger a refresh manually by invoking a grid method but this does not work. Is there a workaround?


3 Replies

SP Sarveswaran Palani Syncfusion Team January 30, 2023 03:16 AM UTC

Hi Anthony,

Greetings from Syncfusion support.

From your query, we prepared sample based on your requirement using command column to refresh the grid by using Refresh method. Refer the attached sample for your reference. If we misunderstood your query, kindly share the simple issue reproducible sample or reproduce the reported issue in the provided sample. It’ll will be very helpful for us to validate the reported query at our end and provide the solution as early as possible.


Attachment: SfGrid_CommandColumn_8b546462.zip

AN Anthony January 31, 2023 02:40 AM UTC


Unfortunately this sample does not apply for my setup. 

In my OnCommandClicked event I have to set to trigger the visibility of an SfDialog box that then pops up with different values that can be updated. Upon clicking the save button on the dialog, it saves the changes back to the database and closes the dialog box. I have tried implementing the refresh method in the same method that closes the dialog box and that does not trigger any update.

SP Sarveswaran Palani Syncfusion Team February 6, 2023 03:56 AM UTC

Hi Anthony,

Thank you for your update. Based on your request, we have prepared a sample to demonstrate how to display a dialog box on the OnCommandClick event by triggering the visibility of the dialog pop-up. Please find the attached sample for your reference.

If you have any additional questions or concerns, please do not hesitate to reach out to us.


Attachment: SfGridOnCommandClick_348e587c.zip

Live Chat Icon For mobile
Up arrow icon