Hi, I have a schedule view that when an appointment is edited, it disappears every second time. Please help.
<telerik:RadScheduleView x:Name="MainSchedule"
Grid.Row="1"
Margin="2"
TimeMarkersSource="{Binding TimeMarkers}"
CategoriesSource="{Binding Categories}"
MinAppointmentHeight="10"
NavigationHeaderVisibility="Collapsed"
AppointmentsSource="{Binding WorkOrderTasks}"
AppointmentCreated="MainSchedule_AppointmentCreated"
ResourceTypesSource="{Binding ResourceTypes}"
AppointmentDeleted="MainSchedule_AppointmentDeleted"
AppointmentEdited="MainSchedule_AppointmentEdited"
CurrentDate="{Binding ElementName=TimeBar,Mode=TwoWay, Path=SelectionStart}"
SelectedAppointment="{Binding SelectedWorkOrderTask,Mode=TwoWay}"
FirstVisibleTime="8:00:00"
ShowAppointmentDeleteButton="False"
ToolTipTemplate="{StaticResource AppointmentToolTipTemplate}">
private void MainSchedule_AppointmentEdited(object sender, AppointmentEditedEventArgs e)
{
VisualPlanningBoardViewModel vm = (VisualPlanningBoardViewModel)this.DataContext;
if (vm != null)
{
vm.UpdateWorkOrderTask((WorkOrderTask)e.Appointment);
vm.UpdateSchedules();
}
}
public void UpdateSchedules()
{
UpdateMinimap();
this.RaisePropertyChanged(() => this.WorkOrderTasks);
this.RaisePropertyChanged(() => this.MiniMapWorkOrderTasks);
}