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 Syncfusion Grid using CustomAdaptor after Database Update


I am using a Syncfusion blazor Grid with Custom Adapter. After making database update, I want to refresh the Grid to show the updated data.

After making database update, I use

 GridInstance.Refresh(); to refresh the grid. On debugging I notice that the CustomAdapter is called however it fetches me old records from the database. I checked the database and the data has been updated.

When I do a hard refresh using

 UriHelper.NavigateTo("/VolumeReview/" + JobId.ToString(),true);

the grid is refreshed correctly

How do I refresh the Grid using Custom Adapter without doing a hard refresh. An sample example will be helpful




Thanks


Kapil


1 Reply

MS Monisha Saravanan Syncfusion Team April 26, 2023 07:22 AM UTC

Hi Kapil,


Greetings from Syncfusion.


We have prepared an simple sample using custom adaptor and database. Kindly check the attached sample for additional reference.


After connecting the database we need to copy the path of the database and change the connectionstring with the copied path in OrderContext,.cs file based on the NORTHWND.MDF file in APP_Data folder.


If you still face issues then share us the way you have used to fetch the data from the database. Also If possible kindly share us an simple issue replicating sample and video demonstration for further validation. It would be very helpful for us to validate further from our end and please let us know if you have any concerns.


Regards,

Monisha


Attachment: BlazorApp1_73dd6489.zip

Loader.
Live Chat Icon For mobile
Up arrow icon