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

Export To Excel only selected items.

1 Answer 137 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 01 Apr 2016, 08:33 AM
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

Sort by
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 ExportToXlsx functionality, 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.
Tags
GridView
Asked by
Alex
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or