DeleteObjectsViewController Class
Represents a ViewController descendant that contains the Delete Action.
Namespace: DevExpress.ExpressApp.SystemModule
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
public class DeleteObjectsViewController :
ViewController
#Remarks
The DeleteObjectsViewController is intended for presenting the Delete Action.
In a Windows Forms application:
In an ASP.NET Web Forms application:
For details on the Delete Action, refer to the description of the DeleteObjectsViewController.DeleteAction property that provides access to this Action.
To customize the default behavior of the Delete Action, you can inherit from this Controller, or subscribe to its events. In addition, you can access the Action to modify its behavior.
This Controller has a descendant for ASP.NET Web Forms applications: WebDeleteObjectsViewController. Inherit from it if you need to implement a Web-specific behavior.
If you need to inherit from the DeleteObjectsViewController, the following protected virtual methods are availabe for overriding:
Method | When is it called? | Description |
---|---|---|
Delete | Invoked as a result of executing the Delete Action. | Represents the Delete Action’s Simple Raises the Delete |
Update | Invoked as a result of changes made to the current View’s object | Checks whether the Delete Action’s active or enabled state should be changed after the environment has been changed. |
Public members are described individually in the documentation.
This Controller is activated for all Views. To ascertain whether the Controller is active, use the Controller.Active property. If you need to know the reason for its deactivation or activation at runtime, use the DiagnosticInfo Action.
Information on the DeleteObjectsViewController and its Delete Action is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.