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

How to control the day forecolor when Enabled/Disabled

1 Answer 11 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Gerardo Solis
Top achievements
Rank 1
Gerardo Solis asked on 02 Mar 2012, 12:17 PM
Hello,

When I display a RadCalendar control in a WPF application with the property IsEnabled=false, and then change the property to true. The number days remain grey and when I move the mouse over them they change it Forecolor to black.

<telerik:RadCalendar Grid.Row="1" Grid.Column="0"  Grid.ColumnSpan="2" Grid.RowSpan="2" MinHeight="620" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
		Columns="4" Rows="3" SelectionMode="Multiple" Name="calMain" IsTodayHighlighted="False" AreWeekNumbersVisible="False"
		FontFamily="Segoe UI" HeaderVisibility="Hidden" ViewsHeaderVisibility="Visible"
		IsEnabled="False" Background="White" Foreground="Black" />

private void btnEnabled_Click(object sender, RoutedEventArgs e)
{            
    calMain.IsEnabled = true;
}

How can I avoid this behaviour?

Regards,
Gerardo.

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 06 Mar 2012, 03:11 PM
Hello Gerardo,

We were unable to reproduce this issue. Which version of the controls are you using? Do you have a RadBusyIndicator in wrapped around RadCalendar?

Please, send us a reproducable sample, if possible.


Greetings,
Dani
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Calendar
Asked by
Gerardo Solis
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or