r.a.d.
grid can export the data to Microsoft Word or Microsoft Excel format.
This can be done via the client-side or server-side methods (respectively of the
client-side RadGridTable object or server-side MasterTableView object):
- server-side
o ExportToWord (fileName, dataOnly, ignorePaging)
o ExportToExcel (fileName, dataOnly, ignorePaging)
- client-side
o ExportToWord (fileName)
o ExportToExcel (fileName)
- server-side
o ExportToWord2007 (fileName, dataOnly, ignorePaging)
o ExportToExcel2007 (fileName, dataOnly, ignorePaging)
fileName - a string specifying the name of the file that will be created.
dataOnly - boolean flag which determines whether only data will be exported.
ignorePaging - boolean flag which specified whether all records will be exported or
merely those on the current page.
The latest export alternative is to configure the exporting settings for the grid through the
RadGrid.ExportSettings
section. The available choices are:
- ExportOnlyData - same as dataOnly parameter depicted previously
- IgnorePaging - same as ignorePaging parameter described above
- OpenInNewWindow - open the exported grid in a new instead of the same page
Additional exporting tips and tricks you can learn from the
r.a.d.grid export chapter
in the grid documentation:
Exporting