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
295
setting focus on appropriate controls
posted

In Outlook when you highlight a week, the Week calendar is set to focus, when a day is highlighted, the day calendar is set to focus, and when the entire month is selected the month calendar control is set to focus.  I'm wondering how we can use the selectedDateRanges to determine when an entire month is selected or week, etc.  I know I can count the number of days selected but Outlook seems to be more sophisticated than that as you can randomly select 7 dates and it will focus to the day control rather than when you click on a whole row and select the entire week.

What would you recommend to do determine which control should be selected when the dates selected changes?

Parents
No Data
Reply
  • 1570
    Offline posted

    Similar to Outlook, I have a toolbar w/ view options (Today, Day, Work Week, Week and Month) and on my  tab I have a DayView, MonthView, MonthViewMulti and a WeekView. Selection from the toolbar shows the specific control. The only control that is always visible is the MonthViewMulti and when the selected day changes, I switch to DayView for that selected day. Because all of these controls are linked to the same ultracalenderinfo control, they all get along quite nice. If I am in the day view and I select other days from the MonthViewMulti, viola the Day View shows another day (You can also use the control key and randomly select dates like you asked). Sorry to ramble but there are a whole lot of options from here, have you looked at the samples? It helped me get going in the direction I wanted.

Children