Refresh only a particular row in the grid

I have seen this question answered here but in my case since I am not using the built in Edit of the grid, is there any other way to do it ?  Like calling  grid.SetRowDataAsync() ouside the OnActionBegin ? I tried but it did'nt work

The way I do it now is to save the row selected index then refresh the grid then reselect the row but  it is  moved  to the top. I would prefer to stay in the same place like it does on your example 

 


3 Replies

RS Renjith Singh Rajendran Syncfusion Team December 8, 2021 06:57 AM UTC

Hi Ben, 
 
Greetings from Syncfusion support. 
 
We checked this scenario by creating a sample to refresh Grid’s row data using SetRowDataAsync method of Grid. In which, we could refresh a row even without enabling Grid’s inbuilt editing feature. We are attaching the sample for your convenience, please download the sample from the link below, 
 
Kindly refer the above sample and use the Grid’s SetRowDataAsync method to programmatically refresh a particular row in Grid. If we have misunderstood your requirement or if you are still facing difficulties then kindly share with us a simple issue reproducing sample along with a video demo explaining your complete requirement to proceed further. 
 
Regards, 
Renjith R 



BJ Ben Junior December 8, 2021 06:43 PM UTC

Hi Renjith R

Using the sample app you provided I was able to implement this funcionality into my code.

Thanks so much for your assistance


Ben Junior




RS Renjith Singh Rajendran Syncfusion Team December 9, 2021 04:27 AM UTC

Hi Ben, 
 
Thanks for your update. Please get back to us if you need further assistance. 
 
Regards, 
Renjith R 


Loader.
Up arrow icon