DataGrid- Reload Data

Hi, 

I used CustomAdaptor in the DataGrid and in this class I receive data from WebApi. In the DataGrid, I used the ContextMenu and by clicking on the item, I do the operation and I want the data in the DataGrid  to be re-read from webapi. How do I do this?


Thank you


1 Reply

MS Monisha Saravanan Syncfusion Team May 19, 2022 12:46 PM UTC

Hi Sarah,


Greetings from Syncfusion support.


We have checked your query and we suspect that you are performing certain action by using context menu and after performing required action you need to reload the Grid data. We suggest you to call Grid Refresh method after using context menu. It will refresh and reload the Grid and the ReadAsync method of custom adaptor will be triggered after refresh and it will collect data from the data adaptor and bind it to the DataGrid.


Reference: https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_Refresh


Kindly get back to us if you have further queries


Regards,

Monisha


Loader.
Up arrow icon