Back to Devexpress

ExportController.ExportAction Property

expressappframework-devexpress-dot-expressapp-dot-systemmodule-dot-exportcontroller-41c38a62.md

latest4.8 KB
Original Source

ExportController.ExportAction Property

Provides access to the ExportController‘s Export Action.

Namespace : DevExpress.ExpressApp.SystemModule

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public SingleChoiceAction ExportAction { get; }
vb
Public ReadOnly Property ExportAction As SingleChoiceAction

Property Value

TypeDescription
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 List Editor determines the target formats that the Action can export. The Action fills its ChoiceActionBase.Items list based on the List Editor’s IExportable.SupportedExportFormats property. To customize the Items list after population, handle the ExportController.ExportActionItemsCreated event.

Windows Forms

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

In Windows 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

How to: Customize the Export Action Behavior

Exporting

ExportController Class

ExportController Members

DevExpress.ExpressApp.SystemModule Namespace