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
185
UltraMonthViewMulti
posted

 Hello I have an issue with this component

1 - When I select more than 365 days I have an error poping saying "Too many days have been selected"

2 - Is it also possible to use the right click to create an appointement from a multiday selection 

3 - is it possible to set the days of one appointement  in a different color or in Italic or with a different background ?

Thanks  for your time


Pierre

 

Parents
  • 69832
    Offline posted

    1. See UltraCalendarInfo.MaxSelectedDays property

    2. The dates can be obtained from the UltraCalendarInfo.SelectedDateRanges collection.

    Example:
    SelectedDateRanges selected = this.ultraMonthViewMulti1.CalendarInfo.SelectedDateRanges;

    if ( selected.Count > 0 )
    {
        //  NOTE: since UltraCalendarInfo supports non-contiguous date
        //  selection, dates between start and end are not necessarily
        //  selected.
        DateTime start = selected[0].StartDate;
        DateTime end = selected[selected.Count - 1].EndDate;
        Appointment appointment = new Appointment(start, end);
    }

    3. Use the UltraCalendarLook.GetDayLook method:

    Example:
    UltraCalendarLook calendarLook = this.ultraMonthViewMulti1;
    DayLook dayLook = calendarLook.GetDayLook( someDate, true );
    dayLook.Appearance.BackColor = Color.Red;

Reply Children
No Data