I am using your CalendarInfo control with your MonthViewSingle control. I have set some of the properties on the CalendarInfo control as follows:
Me.CalendarInfo1.DataBindingsForAppointments.DataSource = Me.dvAppointments Me.CalendarInfo1.DataBindingsForAppointments.BindingContextControl = Me Me.CalendarInfo1.DataBindingsForAppointments.AllPropertiesMember = "All_Properties" Me.CalendarInfo1.DataBindingsForAppointments.DescriptionMember = "Part_Description" Me.CalendarInfo1.DataBindingsForAppointments.EndDateTimeMember = "Scheduled_End_Date" Me.CalendarInfo1.DataBindingsForAppointments.OriginalStartDateTimeMember = "Original_Scheduled_Start_Date" Me.CalendarInfo1.DataBindingsForAppointments.OwnerKeyMember = Me.strOwnersIDField Me.CalendarInfo1.DataBindingsForAppointments.StartDateTimeMember = "Scheduled_Start_Date" Me.CalendarInfo1.DataBindingsForAppointments.SubjectMember = "Subject" Me.CalendarInfo1.DataBindingsForAppointments.DataKeyMember = "Material_Forecast_Sub_Detail_ID" 'set DataBindings for Owners... Me.CalendarInfo1.DataBindingsForOwners.DataSource = Me.dvOwners Me.CalendarInfo1.DataBindingsForOwners.BindingContextControl = Me Me.CalendarInfo1.DataBindingsForOwners.AllPropertiesMember = "All_Properties" Me.CalendarInfo1.DataBindingsForOwners.KeyMember = "Owners_ID" Me.CalendarInfo1.DataBindingsForOwners.NameMember = "Owner_Code" Me.CalendarInfo1.DataBindingsForOwners.VisibleMember = "Visible" 'bind the control to the CalendarInfo and CalendarLook objects... If Not IsNothing(Me.WeekView1) Then Me.WeekView1.CalendarInfo = Me.CalendarInfo1 Me.WeekView1.CalendarLook = Me.CalendarLook1 End If If Not IsNothing(Me.MonthViewSingle1) Then Me.MonthViewSingle1.CalendarInfo = Me.CalendarInfo1 Me.MonthViewSingle1.CalendarLook = Me.CalendarLook1 End If If Not IsNothing(Me.TimelineView1) Then Me.TimelineView1.CalendarInfo = Me.CalendarInfo1 Me.TimelineView1.CalendarLook = Me.CalendarLook1 End If If Not IsNothing(Me.MonthViewMulti1) Then Me.MonthViewMulti1.CalendarInfo = Me.CalendarInfo1 Me.MonthViewMulti1.CalendarLook = Me.CalendarLook1 End If
When I scroll through the various owners, I am noticing that the ActiveOwnerChanged event is not firing. I have to actually click on the control for that event to fire. If I just use the scroll bar to move through the records, the ActiveOwner doesn't change.
Is there an event that fires when they change the owner using the scrollbar? I can't figure out what bindingcontext to hook into in this case.
Hi Richard,
Thank you for posting in our forums.
That happens because, you need to click on the MonthView to activate the owner. Since the scrolling just displays them, the active owner doesn’t change.
Normally when scrolling you would detect if the visible owner has changed by comparing the visible owners in the BeforeScroll and AfterScroll events. Unfortunately it seems that the AfterScroll event doesn’t fire when scrolling horizontally. I have logged this behavior for further investigation with ID 187846. I have also opened a new private case for this -CAS-150155-N3B1K2-, so that you will be notified as soon as this issue is fixed. You can view your active cases by going to this link:
https://es.infragistics.com/my-account/support-activity