Announcement

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

    Display date chooser on a click of the button

    Hi,

    How can i display the date chooser when a button is clicked and hide it when cancel is clicked or the user clicks somewhere else on the screen. I do not want the text field or the combo items that get displayed when DateItem is used.

    Is there any example for this?

    SmartClient versionNumber : "v9.0p_2013-11-03"

    Any help is appreciated.

    thanks

    #2
    You can create a DateChooser in application code and simply show it when the user clicks the button.
    You can implement your own dataChanged() method to handle the user choosing a date.
    DateChooser.showCancelButton governs whether the cancel button shows.
    To handle automatically dismissing on outside click, you can call showClickMask() on the chooser when you show it, with a click action which hides the date-chooser, perhaps via a call to cancelClick().

    Regards
    Isomorphic Software

    Comment

    Working...
    X