Export To Excel only selected items.

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

    Posted 01 Apr 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 X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 01 Apr 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
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top