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

Hiding Square Around First Selectable Day

1 Answer 14 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Ralph Quintero
Top achievements
Rank 1
Ralph Quintero asked on 22 Apr 2011, 11:22 PM
Greets,

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"
                          Rows="1"
                          Columns="3"
                          ViewsHeaderVisibility="Visible"
                          x:Name="ExtendedCalendar"
                          SelectionMode="Extended"
                          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?

Regards.

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 27 Apr 2011, 10:04 AM
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,
Dani
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
Tags
Calendar
Asked by
Ralph Quintero
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or