RadDateTimePicker missing all but last week of month when AreWeekNumbersVisible set to False

2 posts, 0 answers
  1. Mike
    Mike avatar
    1 posts
    Member since:
    Nov 2014

    Posted 11 Nov 2014 Link to this post

    When I have the following in my XAML code:

    <Window.Resources>
       <my:MyViewModel x:Key="MyViewModel"/>
     
        <Style x:Key="CalendarStyle" TargetType="telerik:RadCalendar"
                  BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Expression_DarkTheme, ElementType=telerik:RadCalendar}}">
          <Setter Property="AreWeekNumbersVisible" Value="False" />
        </Style>
     
        <Style TargetType="{x:Type telerik:RadDateTimePicker}" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Expression_DarkTheme, ElementType=telerik:RadDateTimePicker}}">
          <Setter Property="CalendarStyle">
              <Setter.Value>
              <Style BasedOn="{StaticResource CalendarStyle}" TargetType="telerik:RadCalendar">
              </Style>
            </Setter.Value>
          </Setter>
        </Style>
     
     
      </Window.Resources>
        <Grid DataContext="{StaticResource MyViewModel}">
        <telerik:RadGridView Grid.Row="0"
                                 Name="clubsGrid"
                                 ItemsSource="{Binding Clubs}"
                                 AutoGenerateColumns="False"              
                                 Margin="5">
                <telerik:RadGridView.Columns>  
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Established}"
                                                Header="Est."
                                                DataFormatString="{}{0:yyyy/MM/dd}"
                                         />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding StadiumCapacity}"
                                                Header="Stadium"
                                                DataFormatString="{}{0:N0}"/>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
        </Grid>


    If I change AreWeekNumbersVisible to True, it works just fine. I am using telerik version 2013.3.1204.45.

    See attached images.
  2. Kalin
    Admin
    Kalin avatar
    1360 posts

    Posted 14 Nov 2014 Link to this post

    Hello Mike,

    We are aware of the explained RadDateTimePicker issue and it has been already fixed in the Q1 2014 version of the controls. What we can recommend would be to upgrade the used version of the controls to the latest one.

    If you have any other questions let us know.

    Regards,
    Kalin
    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