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 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:
When is it called?
Invoked as a result of executing the Delete Action.
Represents the Delete Action's SimpleAction.Execute event handler. Deletes the object(s) selected in the current View. In case of a List View, this method refreshes the collection source and editor. In case of a Detail View, the method closes it.
Invoked as a result of changes made to the current View's object(s):
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.