NewObjectViewController Class
A ViewController descendant that contains the New Action.
Namespace: DevExpress.ExpressApp.SystemModule
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
public class NewObjectViewController :
ViewController,
IComparer<ChoiceActionItem>,
IModelExtender,
ICreateObjectActionProvider
#Remarks
NewObjectViewController
displays the New Action.
- ASP.NET Core Blazor
- Windows Forms
- ASP.NET Web Forms
Note
In ASP.
Note
In Many-to-Many collections, the New Action is hidden when Newtrue
.
For more information about the New Action, refer to the NewObjectViewController.NewObjectAction property description.
To customize the default behavior of the New Action, you can inherit from this Controller or subscribe to its events. In addition, you can access the Action to modify its behavior.
Platform | Descendant |
---|---|
ASP. |
Blazor |
Windows Forms | Win |
ASP. |
Web |
If you need to inherit from the NewObjectViewController, the following protected virtual methods are available:
Method | Trigger Action | Description |
---|---|---|
| After the | Raises the New |
| After the object has been created, but before it is added to the object collection. | Raises the New |
| After the new object has been created and added to the object collection. If the | Raises the New |
| The New Action’s Single |
|
|
|
|
To ascertain whether the Controller is active, use the Controller.Active property (see How to: Detect a Lookup List View in Code). If you need to know the reason for its deactivation or activation at runtime, use the DiagnosticInfo Action.
Information about the NewObjectViewController
and its New
Action is available in the Application Model. To access it, use the Model Editor.