RequiredFieldValidator
Adds support for [System.Web.UI.WebControls.RequiredFieldValidator] https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.requiredfieldvalidator?view=netframework-4.8
Validates value of control is different than property initial value (in most cases empty).
Implementation Details:
Component Selector: ‘wm-required-field-validator’
Kendo UI Component: N/A
Class inheritance
RequiredFieldValidatorComponent extends BaseValidatorComponent
PME Support
Properties
Property
Get/Set
Details
ControlToValidate: string
Yes
ID of control to validate
InitialValue:string
Yes
Pattern used to validate control to validate
ErrorMessage:string
Yes
Message to show if value in control to validate is equals to Initialvalue property assigned value and text property is empty
Text:string
Yes
Message to show if value in control to validate is equals to Initialvalue property assigned value
Display:ValidatorDisplay
Yes
Enum property with options Static,None,Dynamic
ValidationGroup:string
Yes
If is established the name of the validationgroup component only will validate controls with the same validationgroup associated
Hidden:boolean
Yes
Establishes if the validator shows or is hides
Methods
Methods
Details
validateControl
Return Boolean value based in value in Control to validate is different than InitialValue property value
displayMesssage
Shows value of text property or ErrorMessage property in case text property is empty
Last updated