Won't fix
Last Updated: 11 Aug 2016 14:04 by ADMIN
ADMIN
Telerik Admin
Created on: 27 Jul 2012 09:55
Category: ScheduleView
Type: Bug Report
3
When DataContext of the ScheduleView is set in code the binding for the first view breaks

		
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
1 comment
ADMIN
Kalin
Posted on: 08 Feb 2016 08:15
Hi guys,

After investigation appears this is caused by a framework behavior. However it has easy workaround - just use ElementName binding to the needed property of the ViewDefinition as demonstrated below:

<telerik:RadScheduleView x:Name="ScheduleView">
    <telerik:RadScheduleView.ViewDefinitions>
        <telerik:DayViewDefinition VisibleDays="{Binding DataContext.VisibleDays, ElementName=ScheduleView}" ></telerik:DayViewDefinition>
    </telerik:RadScheduleView.ViewDefinitions>
    <telerik:RadScheduleView.AppointmentsSource>
        <telerik:ObservableAppointmentCollection ></telerik:ObservableAppointmentCollection>
    </telerik:RadScheduleView.AppointmentsSource>
</telerik:RadScheduleView>

Regards,
Kalin