Hey,
I am using a DayTemplateSelector to on my RadCalendar to show a different style for days that have appointments. With my test setup this works fine, but when I'm contacting a service to retrieve appointment, the collection is empty at the moment the month is switched and the appointments are added on arriving back from the service (one by one).
The problem now is that the selector is not triggered when the binded property is changing. Is there a way to force a update on the selector?
I found a post with the next solution:
BUT this will not work for me, when you change the mont the current date will be changed and I will retrieve a new list and the binded list is empty again. Why is the selector not listing to the changes of the property in the datacontext?
I am using a DayTemplateSelector to on my RadCalendar to show a different style for days that have appointments. With my test setup this works fine, but when I'm contacting a service to retrieve appointment, the collection is empty at the moment the month is switched and the appointments are added on arriving back from the service (one by one).
The problem now is that the selector is not triggered when the binded property is changing. Is there a way to force a update on the selector?
I found a post with the next solution:
calendar.DisplayDate = calendar.DisplayDate.AddMonths(1);
calendar.DisplayDate = calendar.DisplayDate.AddMonths(-1);
BUT this will not work for me, when you change the mont the current date will be changed and I will retrieve a new list and the binded list is empty again. Why is the selector not listing to the changes of the property in the datacontext?