Add FetchNewAppointments when changing calendar display date or display mode
This commit is contained in:
Родитель
cdbc2f1eae
Коммит
e1514f8847
|
@ -2463,7 +2463,12 @@ namespace Telerik.UI.Xaml.Controls.Input
|
|||
|
||||
DateTime oldDisplayDate = (DateTime)args.OldValue;
|
||||
|
||||
if (calendar.displayModeCache != CalendarDisplayMode.MultiDayView
|
||||
if (calendar.displayModeCache == CalendarDisplayMode.MultiDayView)
|
||||
{
|
||||
calendar.FetchNewAppointments();
|
||||
calendar.model.multiDayViewModel.updateFlag = MultiDayViewUpdateFlag.All;
|
||||
}
|
||||
else if (calendar.displayModeCache == CalendarDisplayMode.MonthView
|
||||
&& (oldDisplayDate.Year != newDisplayDate.Year || oldDisplayDate.Month != newDisplayDate.Month))
|
||||
{
|
||||
calendar.FetchNewAppointments();
|
||||
|
@ -2529,6 +2534,11 @@ namespace Telerik.UI.Xaml.Controls.Input
|
|||
{
|
||||
calendarPeer.ClearCache();
|
||||
}
|
||||
|
||||
if (calendar.displayModeCache == CalendarDisplayMode.MonthView || calendar.displayModeCache == CalendarDisplayMode.MultiDayView)
|
||||
{
|
||||
calendar.FetchNewAppointments();
|
||||
}
|
||||
}
|
||||
|
||||
private static void OnCalendarViewHeaderFormatPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
|
||||
|
|
Загрузка…
Ссылка в новой задаче