ShinichiKudo
Top achievements
Rank 1
ShinichiKudo
asked on 13 Nov 2014, 02:19 AM
Hi all,
I selected years between 2010 and 2020. But it does show from 2000 to 2010
I have attached photos .
Pelase help me. Thank you!
I selected years between 2010 and 2020. But it does show from 2000 to 2010
I have attached photos .
Pelase help me. Thank you!
3 Answers, 1 is accepted
0
Hello Shinichi,
We are aware of a similar issue of RadCalendar when DayTemplateSelector is used. The issue has already been logged in our feedback portal - you can easily track its status on the following link:
http://feedback.telerik.com/Project/143/Feedback/Details/132438-year-and-decade-buttons-are-not-updated-when-using-daytemplateselector-and-switch
Until the issue is fixed we could suggest you the following workaround:
Please, give it a try and let us know if it worked for you. However, if that is not the case could you please provide us more detailed information about your scenario or provide us some code snippet that may help us to reproduce the issue in order to provide you with a prompt solution.
We are looking forward to hearing for you.
Regards,
Nasko
Telerik
We are aware of a similar issue of RadCalendar when DayTemplateSelector is used. The issue has already been logged in our feedback portal - you can easily track its status on the following link:
http://feedback.telerik.com/Project/143/Feedback/Details/132438-year-and-decade-buttons-are-not-updated-when-using-daytemplateselector-and-switch
Until the issue is fixed we could suggest you the following workaround:
<
telerik:RadCalendar
SelectableDateStart
=
"{Binding BeginDay}"
SelectedDate
=
"{Binding SelectedDay, Mode=TwoWay}"
DayTemplateSelector
=
"{StaticResource DayTemplateSelector}"
DecadeTemplateSelector
=
"{StaticResource DayTemplateSelector}"
YearTemplateSelector
=
"{StaticResource DayTemplateSelector}"
/>
Please, give it a try and let us know if it worked for you. However, if that is not the case could you please provide us more detailed information about your scenario or provide us some code snippet that may help us to reproduce the issue in order to provide you with a prompt solution.
We are looking forward to hearing for you.
Regards,
Nasko
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
ShinichiKudo
Top achievements
Rank 1
answered on 20 Nov 2014, 06:21 AM
Hello Nasko,
Thank you for answer,
I used your ideas , but it does not work and has alert 'Provide value on 'System.Windows.StaticResourceExtension' threw an exception.' Line number '90' and line position '43'.
My code:
<Base:ControlBase.Resources>
<DataTemplate x:Key="SpecialDayTemplate">
<TextBlock Text="{Binding Text}" FontWeight="Bold" Foreground="Red" />
</DataTemplate>
</Base:ControlBase.Resources>
<telerik:RadCalendar Name="HolidayCalendar" Grid.ColumnSpan="3" Width="365"
AreWeekNumbersVisible="False"
IsTodayHighlighted="False"
functions:RadCalendarBehavior.SpecialDayTemplate="{StaticResource SpecialDayTemplate}"
functions:RadCalendarBehavior.SpecialDays="{Binding ModelData.ListHolidayDate}"
DisplayDate="{Binding ModelData.DisplayDate,Mode=TwoWay}">
<telerik:EventToCommandBehavior.EventBindings>
<telerik:EventBinding EventName="MouseDoubleClick" RaiseOnHandledEvents ="True"
Command="{Binding CalendarDoubleClick}"
CommandParameter="{Binding ElementName=HolidayCalendar}"/>
<telerik:EventBinding EventName="DisplayDateChanged" RaiseOnHandledEvents ="True"
Command="{Binding DisplayDateChanged1}"
CommandParameter="{Binding ElementName=HolidayCalendar,Path=SelectedDate}"/>
</telerik:EventToCommandBehavior.EventBindings>
</telerik:RadCalendar>
Thank you for answer,
I used your ideas , but it does not work and has alert 'Provide value on 'System.Windows.StaticResourceExtension' threw an exception.' Line number '90' and line position '43'.
My code:
<Base:ControlBase.Resources>
<DataTemplate x:Key="SpecialDayTemplate">
<TextBlock Text="{Binding Text}" FontWeight="Bold" Foreground="Red" />
</DataTemplate>
</Base:ControlBase.Resources>
<telerik:RadCalendar Name="HolidayCalendar" Grid.ColumnSpan="3" Width="365"
AreWeekNumbersVisible="False"
IsTodayHighlighted="False"
functions:RadCalendarBehavior.SpecialDayTemplate="{StaticResource SpecialDayTemplate}"
functions:RadCalendarBehavior.SpecialDays="{Binding ModelData.ListHolidayDate}"
DisplayDate="{Binding ModelData.DisplayDate,Mode=TwoWay}">
<telerik:EventToCommandBehavior.EventBindings>
<telerik:EventBinding EventName="MouseDoubleClick" RaiseOnHandledEvents ="True"
Command="{Binding CalendarDoubleClick}"
CommandParameter="{Binding ElementName=HolidayCalendar}"/>
<telerik:EventBinding EventName="DisplayDateChanged" RaiseOnHandledEvents ="True"
Command="{Binding DisplayDateChanged1}"
CommandParameter="{Binding ElementName=HolidayCalendar,Path=SelectedDate}"/>
</telerik:EventToCommandBehavior.EventBindings>
</telerik:RadCalendar>
0
Hello Shinichi,
From the provided code snippet we could not tell for sure what may cause the described behavior of RadCalendar. So, could you please provide a sample project that reproduces the issue, so we could be able to investigate it further and suggest you a prompt solution.
We are looking forward to hearing from you.
Regards,
Nasko
Telerik
From the provided code snippet we could not tell for sure what may cause the described behavior of RadCalendar. So, could you please provide a sample project that reproduces the issue, so we could be able to investigate it further and suggest you a prompt solution.
We are looking forward to hearing from you.
Regards,
Nasko
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.