AUTHOR: Marin Bratanov
DATE MODIFIED : January 16, 2018
DATE POSTED: September 15, 2017
OutOfMemory Exception when providing data to a RadGrid with Virtualization.
Virtualization is, first and foremost, a feature the improves the user experience. It can, however, tax the server in its default implementation where all the data is provided to the grid in the NeedDataSource event and the grid determines which items to return to the client when scrolling reaches the point when new data is needed.
You can employ custom paging and provide only the relevant data to the grid in the NeedDataSource event. This will depend on the page size and the items configured for loading at any given time. You can find a sample attached below. Note that this applies only to paging, sorting and grouping
Alternatively, just use custom paging without virtualization.