Page 1 of 1

validation Message

PostPosted: 26 May 2014 09:59
by etwoss
Hi

My rules message comes behind the control, but when i wait some time, one (datepicker) is suddenly placed underneath the control as shown on the image.
You see the 'value required' message still behind the control

I do not touch the keyboard!

It only happens when i have entered a wrong date (outside the range)

This probably comes because i do a IWFrameRegion.AjaxReRender():

Code: Select all
    if (not lblError.Visible) then
    begin
      lblError.Visible := IWCGJQDatePicker.JQValidateOptions.IsValid;

      if (lblError.Visible) then
       IWFrameRegion.AjaxReRender();
    end;



Strange enough IWCGJQDatePicker.JQValidateOptions.IsValid is True, Because IWCGJQDatePicker.Date = 0 and i have a Required rule, i did not expect this.

Eric

Re: validation Message

PostPosted: 02 Jun 2014 11:06
by etwoss
Hi

We have a timer running which probably result in a refresh of the form, i also have a label on the formand it looks like the error message is 'pushed away'or something like that

Eric

Re: validation Message

PostPosted: 02 Jun 2014 11:10
by Alexander Bulei
Hi Eric,

Can you make the simple testcase with timer?

Best Regards.

Re: validation Message

PostPosted: 02 Jun 2014 11:30
by Jorge Sousa
Hi

Check this thread

http://www.cgdevtools.com/cgforum/viewtopic.php?f=3&t=1382&p=6792&hilit=validate#p6792

The final part contains code to an appropriate solution using validations