Best method of exporting data from virtual grid

2 posts, 0 answers
  1. Hannah
    Hannah avatar
    37 posts
    Member since:
    May 2013

    Posted 04 Jan 2017 Link to this post

    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? 



  2. Dimitar
    Dimitar avatar
    2563 posts

    Posted 05 Jan 2017 Link to this post

    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.

    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.
Back to Top