ListViewProcessCurrentObjectController Class
Represents a ViewController descendant that contains the ListViewShowObject Action.
Namespace: DevExpress.ExpressApp.SystemModule
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Remarks
The ListViewProcessCurrentObjectController is intended to execute its ListViewShowObject Action when an end-user presses an object in the current List View. This Action invokes a Detail View representing the pressed object.
The ListViewProcessCurrentObjectController executes its ListViewShowObject Action when the OnProcessSelectedItem method of the current List View’s List Editor (see ListEditor) is called. So, the ListViewShowObject Action is executed if the List Editor that is used to represent a List View calls this method. Currently, the ASPxGridListEditor, TreeListEditor, Windows Forms SchedulerListEditor and GridListEditor call this method when an object is double-clicked or ENTER is pressed. When implementing a custom List Editor, you can call this method where required, as well.
To execute a custom Action instead of the ListViewShowObject Action in a certain List View, handle the ListViewProcessCurrentObjectController‘s ListViewProcessCurrentObjectController.CustomProcessSelectedItem event. For details, refer to the How to: Replace a List View’s Default Action topic.
To access the ListViewShowObject Action, use the ListViewProcessCurrentObjectController.ProcessCurrentObjectAction property.
The ListViewProcessCurrentObjectController is activated 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.