New to Telerik UI for WPF? Download free 30-day trial

Hide the Week Numbers in RadDateTimePicker

Environment

Product Version 2020.2.511
Product RadDateTimePicker for WPF

Description

How to hide the week numbers in the calendar of RadDateTimePicker.

Solution

To hide the week numbers, set the AreWeekNumbersVisible property of the RadCalendar control hosted in the RadDateTimePicker. You can do this using the CalendarStyle property of RadDateTimePicker.

<telerik:RadDateTimePicker InputMode="DatePicker"> 
    <telerik:RadDateTimePicker.CalendarStyle> 
        <!-- if you use NoXaml dlls set the following property to the Style: BasedOn="{StaticResource RadCalendarStyle}" --> 
        <Style TargetType="telerik:RadCalendar"> 
            <Setter Property="AreWeekNumbersVisible" Value="False" /> 
        </Style> 
    </telerik:RadDateTimePicker.CalendarStyle> 
</telerik:RadDateTimePicker> 
In this article