The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientTreeList.ExportTo(format) Method

Exports tree list data to a file in the specified format.


ExportTo(format: ASPxClientTreeListExportFormat): void


Name Type Description
format ASPxClientTreeListExportFormat

An ASPxClientTreeListExportFormat object specifying the export format.



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

The following example illustrates how to use the ExportTo method for exporting the grid data.

<dx:ASPxTreeList ClientInstanceName="treelist" ID="ASPxTreeList1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" KeyFieldName="ProductID"> 
<SettingsExport EnableClientSideExportAPI="true" /> 
<br /> 
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="Export"> 
    <ClientSideEvents Click="function(s, e) {
    }" /> 

Online Demo

Exporting to Different Formats

See Also