Select Year In RadCalendar

4 posts, 0 answers
  1. ShinichiKudo
    ShinichiKudo avatar
    8 posts
    Member since:
    Aug 2014

    Posted 12 Nov 2014 Link to this post

    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!
  2. Nasko
    Admin
    Nasko avatar
    586 posts

    Posted 14 Nov 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. ShinichiKudo
    ShinichiKudo avatar
    8 posts
    Member since:
    Aug 2014

    Posted 20 Nov 2014 in reply to Nasko Link to this post

    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>
  5. Nasko
    Admin
    Nasko avatar
    586 posts

    Posted 24 Nov 2014 Link to this post

    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.

     
Back to Top