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

Initiating an Excel Export from RadGrid

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 04 Jun 2014, 03:13 PM
I have got the Export settings enabled within my RadGrid, but cannot figure out how to execute or initiate an export of the data that is currently in the Grid.


<telerik:RadGrid ID="RadGrid2" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" DataSourceID="OpenAccessLinqDataSource1" Skin="Sunset" CellSpacing="-1" GridLines="Both" AutoGenerateEditColumn="True" AllowFilteringByColumn="True" AllowSorting="True" ShowGroupPanel="True">
<ExportSettings ExportOnlyData="True" FileName="SystemCabCommExport">
<Excel Format="ExcelML" />
</ExportSettings>

How do you go about creating a button or link to execute the enabled Export Settings?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Jun 2014, 04:06 AM
Hi Alex,

You can set the CommandItemDisplay property to display the top bar and to set the Export buttons you can use CommandItemSettings->ShowExportToExcelButton as true.

ASPX:
<MasterTableView CommandItemDisplay="Top" >
  <CommandItemSettings ShowExportToExcelButton="true" ShowExportToCsvButton="true" . . />

Thanks,
Princy
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or