Skip to main content
.NET 6.0+

ModelNodesGeneratorUpdater<T> Class

The base class for Generator Updaters.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public abstract class ModelNodesGeneratorUpdater<T> :
    IModelNodesGeneratorUpdater,
    ISupportCachedNodesGeneratorUpdater
    where T : ModelNodesGeneratorBase

Type Parameters

Name
T

Remarks

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.

Note

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.

Important

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.

Inheritance

Object
ModelNodesGeneratorUpdater<T>
See Also