ValidationModule.InitializeRuleSet() Method
Initializes the RuleSet object assigned to the Validator.RuleSet property.
Namespace: DevExpress.ExpressApp.Validation
Assembly: DevExpress.ExpressApp.Validation.v18.2.dll
Declaration
Remarks
Generally, you do not need to use this method as it is called by the RuleSetInitializationController when its activated in the main window. The only scenario in which you may need to use the method is checking validation rules before the main window is displayed - when a user has not yet logged into the application. In this case, override your Module’s ModuleBase.Setup method and handle the XafApplication.SetupComplete event. In the event handler, access the Validation Module and call the InitializeRuleSet method. To see an example of such InitializeRuleSet method usage, refer to the Non-Persistent Objects Validation help topic.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the InitializeRuleSet() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.