Tree Grid update cell values with filter and no use refresh

Hi, I'm using the Tree Grid and when I'm editing a value there is an API call to update some of the values of the grid:
1) The server gives me and object, and I build the rows with that object.
2) On update the server returns the same object with the updated values, and I re create the rows.

Im using a plain data source, and array of those rows mentioned before.
I want to improve the speed on this updates, I managed to get the diferrences in the rows that need to be updated in the grid, without replacing the entire data source. (some times I have more than 1000 rows and I only need to update 2 values).

I tried to use the setCellValue() method of the grid to update the values, but I have some filters applied that hide/show some rows depenending on a column value, and this is one of the value that could change in the update.

I want to know if the is better way to update the specific value of a cell in the data source without re apply the filter or call grid.refresh()? I cannot find any method in the grid that help me refresh a single value more than the setCellValue (this not work if the cell is filtered), I tried to update the data source as well, but without succes. 

Thanks



3 Replies 1 reply marked as answer

MP Manivannan Padmanaban Syncfusion Team July 7, 2020 01:38 PM UTC

Hi Cesar, 
  
Thanks for contacting Syncfusion support. 
  
According to your query we suspect that you need to update the row or cell without refreshing the entire TreeGrid. To achieve your requirement, we suggest you to use the updateRow method or updateCell method to update the data. 
  
Please refer the below documentation links for more details. 
  
  
  
If the above solution does not meet your requirement, please get back to us we will be happy to assist you. 
  
Regards, 
Manivannan Padmanaban 



Marked as answer

AT Aishvarya Tiwari September 9, 2020 01:06 PM UTC

Hi , 
updatecell and updaterow for ejs-tree-grid angular not working without refreshing the tree grid


FS Farveen Sulthana Thameeztheen Basha Syncfusion Team September 10, 2020 05:17 PM UTC

  
Hi Aishvarya, 

Thanks for contacting Syncfusion Support. 

If you want to update the particular row or Cell without refreshing the entire TreeGrid we suggest you to use setRowData and setCellValue method of the TreeGrid. 

Refer to the below API Links:- 
 
Note:- By using these methods setCellValue and setRowData, we can change the row/cell values UI level alone but not into the TreeGrid dataSource.  

Please get back to us if you are facing any difficulties on this. 

Regards, 
Farveen sulthana T 


Loader.
Up arrow icon