.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

ExportController.ExportAction Property

Provides access to the ExportController‘s Export Action.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v21.2.dll

Declaration

public SingleChoiceAction ExportAction { get; }

Property Value

Type Description
SingleChoiceAction

A SingleChoiceAction object that is the Export Action.

Remarks

The ExportAction is a SingleChoiceAction Action that allows end-users to export data displayed in the current List View to various formats. The Action is active when the current List View’s ListView.Editor supports the IExportable interface and the editor’s control supports the IPrintable interface. The target formats, that the Action can export, are determined by the List Editor to be exported. So, the Action’s ChoiceActionBase.Items list is filled based on the List Editor’s IExportable.SupportedExportFormats property. To customize the Items list after it has been populated, handle the ExportController.ExportActionItemsCreated event.

In a Windows Forms application:

Export_1Export_SaveAs

In an ASP.NET Web Forms application:

Export_Web

Currently, the following built-in List Editors implement the IExportable interface:

In Windows Forms applications:

In ASP.NET Web Forms applications:

To activate the Export Action for a custom List Editor, support the IExportable interface in the List Editor class’ declaration.

If you need a custom List Editor to be exported by the Export Action instead of the current List View’s List Editor, set the ExportController.Exportable property.

To determine why the Export Action is currently deactivated or disabled, use the DiagnosticInfo Action. If you need to change the Action’s “active” or “enabled” state in code, use its ActionBase.Active or ActionBase.Enabled property, respectively.

Information on the Export Action is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ExportAction property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also