PDA

View Full Version : [CLOSED][3.1] RowEditor error msgs not updated while typing



Pachat
24 Jan 2010, 2:36 AM
You can see that on the Row Editor example (http://www.extjs.com/deploy/dev/examples/grid/row-editor.html).

Change a date to 01/01/2020
=> Error : message The date must be before.. OK

Now continue changing it back to what it was, let say just by typing 01/01/2008
=> The error message is still there.

Probably because no action is taken when the date becomes again a valid date
(except highlighting back the OK button).

Jamie Avins
25 Jan 2010, 8:31 AM
This example is using onBlur as the validation event... So this is by design.

Pachat
25 Jan 2010, 9:48 AM
Well, that means that the desing should rely on another event because,
from the user point of view, from the professionnal standard we like to have,
any time she looks at the screen, the information must be accurate :

this means that if she has corrected the date, she sould be "rewarded" by the disapearance of the "Error message".

This should be possible as if you have
01/17/2007
then you delete the 0
01/17/207
in order to write
01/17/2017

you have
01/17/207 : is not a valid date...
01/17/2017 : must be equal or before ...

without going out of the cell, just by typing.

Also, when the date, let say 08/24/2009 is correct, and she wants to set it to 01/24/2010 which is also correct, no message error should appear while correcting the date, even in the necessary intermediate state of 01/24/20

Keeping error message only when a real error occurs makes them more appropriate.

So IMHO may be this should be attached to some other event.

Jamie Avins
25 Jan 2010, 9:59 AM
You can certainly use keyup.

mystix
25 Jan 2010, 10:16 AM
relevant config for ease of reference:
http://www.extjs.com/deploy/dev/docs/?class=Ext.form.Field&member=validationEvent