Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    FormItem for datetime ranges

    Hi,
    I'm using SmartGWT 2.5 (nightly build 2011-03-10) and I'd like to create a search form with a datetime range.
    I found only the DateRangeItem class but not something like DataTimeRangeItem. While using the DateRangeItem class I had to set manually the dateDisplayFormat to a datetime format, otherwise would not display the time part.
    I'd like to have for all form and grid items the default date and datetime formatters configured with DateUtil class and not to set for each item the date/datetime format, but I couldn't achieve that for the datetime range form item.

    Is it possible to have such a DatatimeRangeItem class or can be solved the problem in a different way?

    Thanks,
    Mihnea

    #2
    Support for centrally setting the DateTime format via DateUtil is planned (no ETA), however, this would not convert all DateRangeItems into effectively DateTimeRangeItems. To do that, just subclass DateRangeItem and apply your datetime settings in your constructor, then use the subclass pervasively.

    Comment

    Working...
    X