Announcement

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

    DateTimeItem time picker

    Hi all,
    I have just migrated my application from 3.1 to 4.0 and am now looking to use so of the new widgets.

    Previously in my application I implemented my own DateTimeItem but as the framework has implemented this now and in the email correspondence informing me that smartGWT 4.0 was released I saw that the date picker window now can display a time picker also which I'd like to utilise.

    My issue is I can not see how to implement this, when using the DateTimeItem, the picker window just contains the calendar, in the showcase, for DateRangeItem the picker includes a time picker.

    http://www.smartclient.com/smartgwt/showcase/#form_controls_various.

    Looking at the API's for DateTimeItem I can not figure out how I can enable this.

    Can someone please guide me in the right direction?

    Thanks,
    Dale

    #2
    Apologies,

    looked through all the DateTimeItem posts and found a resolution in this post..

    http://forums.smartclient.com/showthread.php?t=26829&highlight=DateTimeItem

    Solution is to do this...

    setType("datetime");

    Would have never guessed that as I would have thought a DateTimeItem would default to that, anyway it's sorted.

    Thanks,
    Dale

    Comment

    Working...
    X