Skip to main content
.NET 6.0+

ExportController.ExportAction Property

Provides access to the ExportController‘s Export Action.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

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.

See Also