Represents a Simple Action.
NuGet Package: DevExpress.ExpressApp
Related API Members
The following members return SimpleAction objects:
SimpleAction class inherits the basic functionality of Actions from the ActionBase class. Built-in Action Containers display Simple Actions as buttons. The SimpleAction.Execute event holds custom code that runs in response to button clicks.
Add a Simple Action
You can add a Single Choice Action to a Controller inthe following ways:
- In design time (for the .NET Framework projects): drag and drop the SimpleAction item from the Toolbox (the XAF Actions section) onto the Controller’s Designer area.
- In code: see the Add a Simple Action (.NET 6+) tutorial.
Alternatively, you can use the ActionAttribute to convert a business class’ method to an Action (see How to: Create an Action Using the Action Attribute).
Set the IModelActionWeb.IsPostBackRequired property to true to send a postback when a user executes an Action in an ASP.NET Web Forms application. For example, for Actions that download files or change the application’s language.