Export To Excel only selected items.

2 posts, 0 answers
  1. Alex
    Alex avatar
    7 posts
    Member since:
    Jul 2015

    Posted 01 Apr 2016 Link to this post

    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.
  2. Stefan
    Stefan avatar
    1073 posts

    Posted 01 Apr 2016 Link to this post

    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
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top