Skip to main content
A newer version of this page is available. .

ASPxClientCardView.ExportTo(format) Method

Exports grid data to a file in the specified format.

Declaration

ExportTo(
    format: ASPxClientCardViewExportFormat
): void

Parameters

Name Type Description
format ASPxClientCardViewExportFormat

An ASPxClientCardViewExportFormat object specifying the export format.

Remarks

Note

The ExportTo method is in effect if the ASPxGridExportSettings.EnableClientSideExportAPI property is set to true.

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

ASPxCardView Exporting

Online Demos

See Also