Year and Decade Selected Items Grey

2 posts, 0 answers
  1. Royston
    Royston avatar
    2 posts
    Member since:
    Aug 2010

    Posted 19 Jan 2012 Link to this post


    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? 
  2. Georgi
    Georgi avatar
    364 posts

    Posted 21 Jan 2012 Link to this post

    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,
    the Telerik team

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

Back to Top