Hi All
I have a WPF RadCalendar control where I use a DayTemplate Selector to present cells based on a lookup from a database.
The basic premise if that when particular conditions are met the cells will change colour or display different shapes and the like.
I have this working fine, but I have an issue where once the DayTemplateSelector has repainted the cells in the calendar, the Selected Day is no longer shown as selected. If I check the SelectedDate property of the calendar in my code behind, its correct - but the calendar is not displaying it.
If I click on that date again, the selected date is shown correctly.
Is there some way of forcing the calendar to show the selected date again after the calendar has finished rendering using the DayTemplateSelector?
I have tried setting the selectedDate to nothing then back to the correct date to see if that would trigger the selected date to be displayed, but it didn't. It seems to only show the selection when clicked from the UI.
Any thoughts or suggestions would be very much appreciated.
I am using 2012.RadControls_for_WPF_2012_2_0912_Dev_hotfix version of the Calendar control in DotNet 4.0 application.
Its using MVVM with Prism4, so everything is handles through bindings.
Cheers
Rod.
I have a WPF RadCalendar control where I use a DayTemplate Selector to present cells based on a lookup from a database.
The basic premise if that when particular conditions are met the cells will change colour or display different shapes and the like.
I have this working fine, but I have an issue where once the DayTemplateSelector has repainted the cells in the calendar, the Selected Day is no longer shown as selected. If I check the SelectedDate property of the calendar in my code behind, its correct - but the calendar is not displaying it.
If I click on that date again, the selected date is shown correctly.
Is there some way of forcing the calendar to show the selected date again after the calendar has finished rendering using the DayTemplateSelector?
I have tried setting the selectedDate to nothing then back to the correct date to see if that would trigger the selected date to be displayed, but it didn't. It seems to only show the selection when clicked from the UI.
Any thoughts or suggestions would be very much appreciated.
I am using 2012.RadControls_for_WPF_2012_2_0912_Dev_hotfix version of the Calendar control in DotNet 4.0 application.
Its using MVVM with Prism4, so everything is handles through bindings.
Cheers
Rod.