This question is locked. New answers and comments are not allowed.
Hi,
I have a RadDatePicker control in my application.
I need to disable the RadDatePicker control whenever it lost the focus (when we do tab out from the control). I have written the code to disable the control in the LostFocus event.
But it is Disabling the control even I click on the Calender button also.
I mean it is firing the lost focus event first when I click on the Calender button.
Following is the sample code which I am using.
<StackPanel x:Name="LayoutRoot" Background="White">
<TelerikInput:RadDatePicker x:Name="Pick" Width="100" Height="20" LostFocus="Pick_LostFocus" DropDownOpened="Pick_DropDownOpened"></TelerikInput:RadDatePicker>
</StackPanel>
private void Pick_LostFocus(object sender, RoutedEventArgs e)
{
Pick.IsEnabled = false;
}
private void Pick_DropDownOpened(object sender, RoutedEventArgs e)
{ }
Please help.
Regards,
SivaPrasad.B
I have a RadDatePicker control in my application.
I need to disable the RadDatePicker control whenever it lost the focus (when we do tab out from the control). I have written the code to disable the control in the LostFocus event.
But it is Disabling the control even I click on the Calender button also.
I mean it is firing the lost focus event first when I click on the Calender button.
Following is the sample code which I am using.
<StackPanel x:Name="LayoutRoot" Background="White">
<TelerikInput:RadDatePicker x:Name="Pick" Width="100" Height="20" LostFocus="Pick_LostFocus" DropDownOpened="Pick_DropDownOpened"></TelerikInput:RadDatePicker>
</StackPanel>
private void Pick_LostFocus(object sender, RoutedEventArgs e)
{
Pick.IsEnabled = false;
}
private void Pick_DropDownOpened(object sender, RoutedEventArgs e)
{ }
Please help.
Regards,
SivaPrasad.B