When using row virtualization on the data grid what is the proper way to refresh the data

When using row virtualization on the data grid what is the proper way to refresh the data. 


3 Replies

RR Rajapandi Ravi Syncfusion Team March 24, 2025 02:01 PM UTC

Hi Brian,


Greetings from Syncfusion support


Based on your query you are using Virtualization feature in the Grid and like to refresh the data. Before we start providing solution on your query, we need some more information for our clarification. So kindly share the below details,


1)              Share your exact requirement and use case scenario with detailed description about at what scenario you like to refresh the data.


2)              Could you please confirm you are performing any specific action in the Grid and after that you like to refresh data. If yes, kindly share the scenario step by step with detailed description.


3)              Share your complete Grid rendering code (Ts and Html code), so that we can review your initialization settings, implement features, event handling and data bindings. So based on that we can suggest the way to refresh the data without affecting other functionalities.


4)              Share your Syncfusion package version.


Regards,

Rajapandi R



BH Brian Hussey March 24, 2025 03:24 PM UTC

  1. I have a dropdown list that changes the data via async call to a remote service (same columns different data


I was occasionally getting weird rendering issues in the grid (white space, sometimes when scrolling the rows would not render and would hang on the row refreshing view)


After reading the documentation I found the method changeDataSource which seemed to resolve the issues I was having when updating the datasource.






RR Rajapandi Ravi Syncfusion Team March 25, 2025 11:55 AM UTC

Brian,


We are glad to hear that you have found the solution at your end.


Since you like to change the dataSource dynamically, the changeDataSource method will helps to achieve your requirement. Please refer the below documentation for more information.


Documentation: https://ej2.syncfusion.com/angular/documentation/grid/data-binding/data-binding#dynamically-change-the-datasource-or-columns-or-both


Please get back to us if you need further assistance.


Loader.
Up arrow icon