CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

ErrorContainerControl

by etwoss » 10 Dec 2015 12:23

Hi

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
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by assapan » 10 Dec 2015 15:30

I have checked with my test software and it works for me , can you check with your version ?
You do not have the required permissions to view the files attached to this post.
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Alexander Bulei » 10 Dec 2015 17:11

Hi Eric,

I have checked with my test software and it works for me , can you check with your version ?


Thanks assapan!
Confirmed, works as expected.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQEdit

Who is online

Users browsing this forum: No registered users and 4 guests

Contact Us.