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
160
UltraDayView and Multiple Selected Days
posted

I have an UltraDayView that I default to 7 selected days.  This looks great in my app, but I have a problem when I attempt to click on a day and make it the active day.  How do I know which day has been clicked?  I am also trying to set a background color on days that are holidays, but again haven't found a way to do this for a specific day in the selected days.

 Can anyone offer any assistance?

 

Thanks,

 Randall Luce

Parents
  • 69832
    Offline posted

    1. You can use the GetVisibleDayFromPoint method to get the day that has been clicked.

    2. To set the background color for a specific day:

    UltraCalendarLook calendarLook = dayView.CalendarLook;
    DayLook dayLook = calendarLook.GetDayLook( someDate, true );
    dayLook.Appearance.BackColor = Color.Green;

Reply Children