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
Keeping Calendars in Sync
posted

I am using an UltraMonthViewMulti control and a UltraMonthViewSingle.  The UltraMonthViewMulti is used like in Outlook to select date ranges and then UltraMonthViewSingle shows the appropriate appointments etc. associated with the dates. 

My problem is when the user scrolls forward in the UltraMonthViewMulti, for example, to change months, the UltraMonthViewSingle control does not stay in sync as far as showing the same date ranges that are shown in the UltraMonthViewMulti control.  The more you scroll, the worse the out of sync situation becomes.  They are both using the same CalendarInfo and CalendarLook objects.

What do I need to set to keep them in sync?  BTW, the same issue happens when trying to sync up to the UltraWeekView and UltraDayView.

Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    UltraMonthViewMulti displays six rows of weeks, so UltraMonthViewSingle will not be "synchonized" in the manner you describe here unless you set its VisibleWeeks property to 6. Furthermore, UltraMonthViewMulti scrolls the new month into view in such a way that will display the leading and trialing days differently than does UltraMonthViewSingle, so I think you would have to handle the BeforeMonthScroll event and call UltraMonthViewSingle's ScrollDayIntoView method, passing the day that is the top/left day for the new month (which depending on the day of the week, can be in the previous month).

Children