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
Restrict to select only sundays using UltraDateTimeEditor

How can user select only Sundays using  UltraDateTimeEditor. other than Sundays ,all of the days should be disable.

  • 300
    Offline posted
    UltraDateTimeEditor provides the ability to restrict a range of dates that will be accepted by the control only. If you would like to use an extended array of functionalities, I'd recommend using our UltraCalendarCombo (Infragistics.Win.UltraWinSchedule) component instead.
    Adding UltraCalendarCombo, allows the addition of the following controls as well:
    UltraCalendarInfo allows the restriction of dates by day of the week. Restricting all days but Sundays would look as follows:
    foreach(var day in this.ultraCalendarInfo1.DaysOfWeek)
                    if (day.LongDescriptionResolved.ToString() == "Sunday") day.Enabled = true;
                    else day.Enabled = false;
    Should you have any further questions or concerns, please let me know.
    Tihomir Tonev
    Associate Software Developer