PDA

View Full Version : [CLOSED] DateField validation in grid problem



micgala
26 May 2011, 8:03 AM
Hi.

There is a problem in the validation of the DateField when using it in the grid.
(Not sure if this applies only to DateFields, though).

To reproduce, try this:
1- Open this URL: http://www.sencha.com/examples/explorer.html#editablegrid
2 - Click in the first 'Available' cell, this will open the date for editing.
3 - Type something not valid, for example, an 'a' to the end of the field.
4 - Click somewhere else, in order to blur the field. The validation works, and the field as marked in red.
5 - Remove the wrong a, and then exit the field edition.
6 - Try to edit the cell again, and type something not valid once more.
7 - If you blur the field again, this time the validation won't work, and the edition is simply cancelled.

Regards,
Michel.

sven
26 May 2011, 8:11 AM
This works fine in GXT 2.2.4

sven
26 May 2011, 8:43 AM
The examples are updated to GXT 2.2.4 now and i cannot reproduce this anymore.

micgala
26 May 2011, 11:21 PM
Tks for checking Sven.
I've clear my browser cache, and can now see Gxt 2.2.4 samples.
Now when typing the wrong value, no message is displayed, and the edition simply is canceled.
Is this the desired behaviour?
What if I want to have the validation message displayed, how can I do it?

Regards,
Michel.

sven
26 May 2011, 11:58 PM
What if I want to have the validation message displayed, how can I do it?


This is not supported right now.