Refresh Grid after add record in datasource

Hi there , sorry for boring you , but i did all things ttah you suggest to refresh a grid after add a new record in my db. 

 await WikiService.SCreateWiki(WikiRecord); // add new record

 await this.WikisGrid.AddRecordAsync(WikiRecord);

 StateHasChanged();

 wikiVisibility = false;

 WikisGrid.Refresh();


theese are my tries . THX 


1 Reply

NP Naveen Palanivel Syncfusion Team December 20, 2024 03:24 AM UTC

Hi Francesco,


We have reviewed your query and would like to inform you that, by default, the grid will refresh automatically after an add or edit operation is performed. Before proceeding further with your request, kindly provide the following details:

  • Please share the Grid code snippet along with the model class.
  • Please share your exact issue with a detailed explanation after adding the record
  • Is the newly added record not updating in the grid, or are you encountering any exceptions after adding the record?
  • Share a video demonstration of the issue with a detailed explanation. This will greatly assist us in understanding the problem
  • share us an simple issue replicating sample

The above requested details will be very helpful for us to validate your requirement.


Regards,

Naveen


Loader.
Up arrow icon