Hi i have a RadGridview bound with datatable/observable collection of model class.Now what i want when user clicks on export button it should export only selected rows from grid not all rows.
1 Answer, 1 is accepted
0
Stefan
Telerik team
answered on 01 Apr 2016, 01:31 PM
Hello Alex,
Can you please share some details on which exporting mechanism are you using? If you are using the newer ExportToXlsxfunctionality, you can use the built-in Items property of the GridViewDocumentExportOptions and pass the SelectedItems collection of RadGridView to it. Please checkout the ExportFormat.Xlsx topic for more information.
All the best,
Stefan X1
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.