I have an Edit and a ErrorContainerControl Container:
- Code: Select all
object edtEmployee: TIWCGJQEdit
Left = 55
Top = 123
Width = 350
Height = 21
TabOrder = 2
Version = '1.0'
ZIndex = 1000
ScriptEvents = <>
Text = ''
WatermarkOptions.Active = False
JQValidateOptions.ErrorContainerControl = IWCGJQRegionError
JQValidateOptions.Rules = <
item
Rule = jqvorvRequired
ErrorMessage = 'Value required'
end>
end
object IWCGJQRegionError: TIWCGJQRegion
Left = 55
Top = 145
Width = 298
Height = 20
TabOrder = 3
Version = '1.0'
ZIndex = 1000
end
I Set
- Code: Select all
edtEmployee.JQValidateOptions.Enable := True;
In code.
I have
- Code: Select all
if edtEmployee.JQValidateOptions.IsValid then
begin
AText := edtEmployee.Text;
IWFrameRegion.Visible:= False;
if (Assigned(FOnBehalfOfDialogClose)) then
FOnBehalfOfDialogClose(Self, mrOk, -1, AText);
Now IsValid is False but text 'Value required' not shown.
What could be the reason?
Eric