I found a good solution, simply check the Visible state of
the calendar on the ImageButton selection. If the
calendar is showing, hide it, else show it. This will
provide a reasonable way for the user to dismiss the
calendar.
Thanks,
Rick
>-----Original Message-----
>Per the doc, the calendar control will not send the
>SelectionChange event when the same date is selected.
>
>In our application, we have an imagebutton which shows
the
>calendar control to allow the user to select a date to
>fill in a textbox. Once selected the calendar is hidden.
>
>This works well when a new date is selected. However, if
>the user does not wish to select a different date, I need
>to find a way to "dismiss (hide)" the calendar.
>
>If there is another event that can be used, that would be
>great. The other alternative that might work would be a
>onkeypress event to look for enter or escape, then hide
>the calendar. I don't know the exact syntax to hide the
>web control in javascript.
>
>Any help would be appreciated.
>
>Thanks,
>Rick Lubanovic
>
>.
>
|