Skip to main content
.NET Framework 4.5.2+

RefreshController.RefreshAction Property

Provides access to the RefreshController‘s Refresh Action.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v22.1.dll

Declaration

public SimpleAction RefreshAction { get; }

Property Value

Type Description
SimpleAction

A SimpleAction object representing the Refresh Action.

Remarks

The Refresh Action is intended to refresh the object(s) represented by the current View.

This Action’s Execute event is handled by the RefreshController‘s Refresh protected method (see the class’ description). If you need to modify the way this Action is executed, inherit from this Controller and override the Refresh method.

By default, the Refresh Action is activated for root Views only (see View.IsRoot).

The Refresh Action is disabled when the object in the current Detail View is new, i.e. the object has not been committed to the database.

To ascertain why the Refresh 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 Refresh Action is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RefreshAction 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