Hiding Square Around First Selectable Day

2 posts, 0 answers
  1. Ralph Quintero
    Ralph Quintero avatar
    5 posts
    Member since:
    Jan 2008

    Posted 22 Apr 2011 Link to this post


    I am using the Telerik Silverlight RadCalendar for the Q3 2009 SP1 Release.  We have a ChildWindow which contains the calendar, the XAML is as follows

    <telerikInput:RadCalendar Grid.Row="1"
                              SelectedDate="{Binding SelectedDate}"/>

    When the ChildWindow is initial shown, a box appears around the first day of the first month displayed --even if the day is from a previous month.  Clicking on the ChildWindow header, this box disappears; however, we would like to make sure that the box does not appear initially, because it is confusing to the user in the context in which we use it.

    We have tried several approaches: in the ChildWindow's 'Loaded' event, we call UpdateLayout(); in same event, we tried to set focus to the child form; we tried disabling the control and in the 'Loaded' event, re-enabling; as well as trying to see if we could find the element in the Style for the Calendar and collapse it.  Each approach was unsuccessful.

    I'd like to know if there is a way that we can suppress this on initial load, does anyone have any ideas?

  2. Dani
    Dani avatar
    848 posts

    Posted 27 Apr 2011 Link to this post

    Hello Ralph,

     The Border is the actual focus Border of the Calendar Button and is used as an entry point for the keyboard navigation of RadCalendar. This issue has been requested before and is described in this PITS item, please vote for it.
     What you can do now is to to cancel the rendering of the focus state of the Calendar button. To do that , generate the RadCalendar template in Expression Blend and find the SelectionChrome in the CalendarButtonStyle. Set its RenderFocused to False.

    I hope this will be helpful

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top