![]() ![]() ![]() When an UltraValidator component is instantiated in design mode, a ValidationSettings instance is extended to every control on the form. This object encapsulates most of the validation functionality provided by the component since each control uses a separate instance, most aspects of the validation are customizable on a per-control basis. Validation of embeddable editors is also supported this is accomplished by assigning a reference to an editor provider control such as an UltraTextEditor or UltraComboEditor to the EditorControl property of (for example) an UltraGridColumn or UltraTreeNodeColumn, then using the ValidationSettings instance extended to the editor provider control to customize the validation behavior for the grid/tree cell. Validation criteria is specified using the properties of the object. The Condition property is used to specify more complex validation criteria, such as whether a value lies within a given range.Ī required field condition can be enforced by setting the IsRequired property to true values are evaluated using the EmptyValueCriteria property if a value is determined by that definition to be null or empty, validation fails, causing the ValidationError event to fire. The property is of type ICondition, an interface that was created to solve the problem of row filtering for the UltraGrid control. The interface exposes only one method, Matches, which returns a boolean value that indicates whether the value meets the criteria defined by the condition. When a validation occurs, this method is called, and its return value determines whether the validation succeeds or fails. There are several concrete implementations defined in the Infragistics framework that can be assigned to this property (see,, ). ![]()
0 Comments
Leave a Reply. |