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

Year and Decade Selected Items Grey

1 Answer 23 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Royston
Top achievements
Rank 1
Royston asked on 19 Jan 2012, 10:29 AM
Hi,

I noticed that the first and last items of the calendar for the Year and Decade Selection Modes are greyed out but still selectable in the DatePicker. What is this meant to convey. How can I change these to be the same style as the other items? 

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 21 Jan 2012, 10:07 AM
Hello Royston,

Actually this is by design - it is made to be consistent with DateSelectionMode="Day", where you can see the days from the last and previous Month, they are gray and selectable.

If you want to change it you need to change the style of the calendar. More info on this here.

If you want to change the style of the buttons from the calendar witch are gray you need to make changes on
<VisualState x:Name="IsNotFromCurrentView">

which is in
<Style x:Key="CalendarButtonStyle" TargetType="Telerik_Windows_Controls_Calendar:CalendarButton">

Hope this helps.

All the best,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DatePicker
Asked by
Royston
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or