This is a migrated thread and some comments may be shown as answers.

Select Year In RadCalendar

3 Answers 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
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!

3 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 14 Nov 2014, 04:09 PM
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:
<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>
0
Nasko
Telerik team
answered on 24 Nov 2014, 10:58 AM
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
 

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.

 
Tags
General Discussions
Asked by
ShinichiKudo
Top achievements
Rank 1
Answers by
Nasko
Telerik team
ShinichiKudo
Top achievements
Rank 1
Share this question
or