PDA

View Full Version : Additions to DateField



cravemusic
29 Sep 2008, 10:51 AM
With the version of the DateField in version 1.1, entering an invalid date, such as "2/31/2008" or "22/22/2222" will cause the date to calculate the next valid date by rolling over to an offset new value (to 10/22/2223 and 3/2/2008, respectively). It would be nice to have a way to turn off this "auto rollover" behavior and instead have the field show a validation error.

Also, the ability to specify multiple formats for a date input would be helpful. Users should be able to enter 2-1-2008 or 2/1/2008 into a field, and have it be valid. I see the ExtJS library has this capability (seen in this post (http://extjs.com/forum/showthread.php?t=6920)), so I'm hoping those ideas will migrate over to GXT as well.

xlawrence
23 Oct 2008, 12:39 AM
It should also be great to also have the possibility to pick the hour. So simply extending the DateField with the possibility to pick the date and also the hours and minutes.

les
3 Nov 2008, 10:16 AM
With the version of the DateField in version 1.1, entering an invalid date, such as "2/31/2008" or "22/22/2222" will cause the date to calculate the next valid date by rolling over to an offset new value (to 10/22/2223 and 3/2/2008, respectively). It would be nice to have a way to turn off this "auto rollover" behavior and instead have the field show a validation error.

Also, the ability to specify multiple formats for a date input would be helpful. Users should be able to enter 2-1-2008 or 2/1/2008 into a field, and have it be valid. I see the ExtJS library has this capability (seen in this post (http://extjs.com/forum/showthread.php?t=6920)), so I'm hoping those ideas will migrate over to GXT as well.

+1

This behavior should be standard for a DateField widget.