This is a migrated thread and some comments may be shown as answers.

Best method of exporting data from virtual grid

1 Answer 30 Views
VirtualGrid
This is a migrated thread and some comments may be shown as answers.
Hannah
Top achievements
Rank 2
Hannah asked on 05 Jan 2017, 02:05 AM

Hi there,

I'm currently utilizing the RadVirtualGrid on a particular form.  I would like to be able to take the current data that is being applied virtually and export it to csv.  I notice that the ExportToCSV routine takes a RadGridView object as the source for the export, so my question is this:

Should I take the source query for the virtual grid and create a RadGridView object and populate it just to export to csv?  Is this the only way the Telerik stack can be used to export to csv? 

Cheers!

Wayne

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 05 Jan 2017, 09:20 AM
Hi Wayne,

Thank you for writing.

The VirtualGrid does not load the entire data, it only requests the data that should be currently visible. This is why this control does not have any exporting functionality. 

There is no need to use UI control just to create and export CSV file. You can use our RadSpreadStreamProcessing library to create such files, however, you will need to iterate all rows in your data source. Detailed information is available here: RadSpreadStreamProcessing.

I hope this information is useful. Let me know if you need further assistance.

Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
VirtualGrid
Asked by
Hannah
Top achievements
Rank 2
Answers by
Dimitar
Telerik team
Share this question
or