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

cannot shift tab out of RadDatePicker

3 Answers 120 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 16 Jan 2015, 04:57 PM
We use the RadDatePicker in numerous places.  Sometimes direct and sometimes through a DataTemplate, but the problem is consistent.  We can TAB through the controls (including other telrik controls) but we cannot SHIFT+TAB (reverse tab) through the date controls.  It stops and highlights the date on the control and goes no further.

we are using 2014.2.729.45 for all controls.

below are some code samples:
01.<WrapPanel Grid.Row="3"
02.                     Grid.Column="1"
03.                     >
04.              <telerik:RadDatePicker SelectableDateEnd="{Binding LineItemEndDate}"
05.                                     SelectableDateStart="{Binding LineItemStartDate}"
06.                                     SelectedValue="{Binding GivenStartDate}"
07.                                     Style="{StaticResource TilePropertyDataRadDatePickerStyle}"
08.                                     />
09.              <ContentControl IsEnabled="{Binding IsStartDateInvalid}"
10.                              Style="{StaticResource ErrorAdorner}"
11.                              ToolTip="{Binding StartDateErrorMsg}"
12.                              />
13.          </WrapPanel>

And here is the Style

01.<Style x:Key="TilePropertyDataRadDatePickerStyle"
02.       TargetType="{x:Type telerik:RadDatePicker}"
03.       >
04.    <Setter Property="FontFamily" Value="{telerik:Windows8Resource ResourceKey=FontFamily}" />
05.    <Setter Property="FontSize" Value="{telerik:Windows8Resource ResourceKey=FontSize}" />
06.    <Setter Property="FontWeight" Value="Normal" />
07.    <Setter Property="IsTabStop" Value="True" />
08.    <Setter Property="Height" Value="{StaticResource TilePropertyHeight}" />
09.    <Setter Property="Foreground" Value="{StaticResource TilePropertyDataBrush}" />
10.    <Setter Property="Margin" Value="{StaticResource TilePropertyDataMargin}" />
11.    <Setter Property="VerticalAlignment" Value="Center" />
12.    <Setter Property="Width" Value="100" />
13.    <Setter Property="HorizontalAlignment" Value="Left" />
14.</Style>

I saw this used to be an issue, but was corrected back in 2012. not sure if bug was re0introduced or we have some piece of code "off".

thanks.

​

3 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 19 Jan 2015, 04:18 PM
Hello Robert,

We are already aware of the described behavior of RadDatePicker and it has been logged in our portal where you could easily track its status on the following link:
http://feedback.telerik.com/Project/143/Feedback/Details/113343-when-istabstop-is-set-to-true-the-shifttab-combination-doesnt-move-the-focus-ba

Until the issue is fixed what we could suggest you as a workaround is to set the Keyboard.TabNavigation property to "Continue" as shown bellow:
<Window.Resources>
    <Style TargetType="telerik:RadDatePicker">
        <Setter Property="KeyboardNavigation.TabNavigation" Value="Continue" />
    </Style>
</Window.Resources>

We hope this will help you and we apologize for any caused inconvenience.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Abdul Moiz
Top achievements
Rank 1
answered on 27 May 2015, 09:26 AM

Hello,

Please mention in which file above code has to be added.

 Thank you.

0
Nasko
Telerik team
answered on 29 May 2015, 12:57 PM
Hello Abdul,

The Style could be declared either in the file where currently the control is placed or inside the App.xaml file. For the concrete scenario it is declared in the "MainWindow.xaml" file where RadDateTimePicker is placed -as there is TargetType set the Style would be applied for all RadDateTimePickers. If you need to apply it to just one DateTimePicker control you need to set Key to the Style and set ti to the Style property of RadDateTimePicker.

Hopes this helps.

Regards,
Nasko
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
DatePicker
Asked by
Robert
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Abdul Moiz
Top achievements
Rank 1
Share this question
or