ListViewProcessCurrentObjectController Class
A ViewController descendant that contains the ListViewShowObject Action.
Namespace: DevExpress.ExpressApp.SystemModule
Assembly: DevExpress.ExpressApp.v25.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Remarks
ListViewProcessCurrentObjectController executes its ListViewShowObject Action when an end-user clicks an object in the current List View. This Action invokes a Detail View that displays the clicked object.
The ListViewProcessCurrentObjectController executes its ListViewShowObject Action when XAF calls the OnProcessSelectedItem method of the current List View’s List Editor (see ListEditor).
The TreeListEditor, Windows Forms SchedulerListEditor, and GridListEditor call this method when the end-user double-clicks an object or presses ENTER. When you implement a custom List Editor, you can call OnProcessSelectedItem where you need.
To execute a custom Action instead of the ListViewShowObject Action in a certain List View, handle the Controller’s ListViewProcessCurrentObjectController.CustomProcessSelectedItem event. For details, refer to the following topic: How to: Replace a List View’s Default Action.
To access the ListViewShowObject Action, use the ListViewProcessCurrentObjectController.ProcessCurrentObjectAction property.
XAF activates ListViewProcessCurrentObjectController for List Views only. 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 ListViewProcessCurrentObjectController and its ListViewShowObject Action is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.