ASPxClientVerticalGrid.ExportTo(format) Method
In This Article
Exports a grid data to a file in the specified format.
#Declaration
TypeScript
ExportTo(
format: ASPxClientVerticalGridExportFormat
): 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:ASPxVerticalGrid ClientInstanceName="verticalGrid" ID="ASPxVerticalGrid1" runat="server" Width="700px" AutoGenerateRows="False" DataSourceID="SqlDataSource3" KeyFieldName="ProductID">
<SettingsExport EnableClientSideExportAPI="true"></SettingsExport>
<Rows>
...
</Rows>
</dx:ASPxVerticalGrid>
<br />
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="Export">
<ClientSideEvents Click="function(s, e) {
verticalGrid.ExportTo(ASPxClientVerticalGridExportFormat.Xls);
}" />
</dx:ASPxButton>
#Online Demo
Exporting to Different Formats
See Also