ASPxClientCardView.ExportTo(format) Method
In This Article
Exports grid data to a file in the specified format.
#Declaration
TypeScript
ExportTo(
format: ASPxClientCardViewExportFormat
): void
#Parameters
Name | Type | Description |
---|---|---|
format | ASPx |
An ASPx |
#Remarks
Note
The Exporttrue
.
The following example illustrates how to use the ExportTo method for exporting the grid data.
<dx:ASPxCardView ID="ASPxCardView1" ClientInstanceName="cardView" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" KeyFieldName="ProductID">
<SettingsExport ExportSelectedCardsOnly="True" EnableClientSideExportAPI="true"></SettingsExport>
<Columns>
...
</Columns>
</dx:ASPxCardView>
<br />
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="Export">
<ClientSideEvents Click="function(s, e) {
cardView.ExportTo(ASPxClientCardViewExportFormat.Xls);
}" />
</dx:ASPxButton>
#Concept
#Online Demos
See Also