.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
A newer version of this page is available. Switch to the current version.

ModelNodesGeneratorUpdater<T> Class

The base class for Generator Updaters.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v19.2.dll


public abstract class ModelNodesGeneratorUpdater<T> :
    where T : ModelNodesGeneratorBase

Type Parameters



Inherit this class to customize the content of a certain Application Model node, generated by the Nodes Generator. Use the target Nodes Generator type as the generic parameter. You can implement a Generator Updater for one of the built-in Nodes Generators, or for a custom ModelNodesGeneratorBase descendant.

The ModelNodesGeneratorUpdater<T> class exposes the ModelNodesGeneratorUpdater`1.UpdateNode virtual method. Override this method to implement the required update logic. To access the node for which the Updater is invoked, use the method's node parameter. The ModelNodesGeneratorUpdater<T> descendant should be registered within the overridden ModuleBase.AddGeneratorUpdaters method.

The complete example is available in the How to: Create Additional ListView Nodes in Code using a Generator Updater topic.


Generator Updaters cannot be used to override changes made in the Application Model at runtime. So, the ModelNodesGeneratorUpdater<T> class can be used to specify the default values of node properties.


Always use a Node Generator or Generator Updater to customize the current node and its child nodes. To update nodes outside the current node hierarchy, create separate Node Generators or Generator Updaters.


See Also