Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
Disabling dates in DropDownCalendar
posted

Is it possible to disable certain dates in the DropDownCalendar (ie, Christmas, Easter)?  Also, is it possible to set it up to only allow users to select certain days of the week (ie, weekends)?

  • 469350
    Verified Answer
    Offline posted

    Hi,

    The dropdown calendar you see in the grid by default for DateTime fields is the inbox MonthCalendar control, and as far as I know, it doesn't have the ability to disable any dates.

    What you could do, though, is use the UltraCalendarCombo control, instead. What you would do is place an UltraCalendarCombo control on the form with the grid and hook it up to an UltraCalendarInfo object. The UltraCalendarInfo lets you disable dates. Then you set the EditorControl property of the grid column to the UltraCalendarCombo for any DateTime fields.