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

RadDatePicker and TabIndex

22 Answers 357 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Nils
Top achievements
Rank 1
Nils asked on 15 Dec 2009, 03:19 PM
I have a RadDatePicker in which I set IsTabStop="True" and TabIndex=4.
However, this does not work the way I expected it to.
As TabStop #4 The whole RadPicker is selected - and I can no "do" anything but move on - there's no way to type text in the TextBox or open the picker dialog.
However at the end of my hand-set-tab-order the tab jumps into the the RadDatePicker-TextBox to edit the date.

How can I make the RadDatePicker-TextBox be part of my TabOrder ??

I am using the RadControls for wpf 2009.Q2

yours,
Nils

22 Answers, 1 is accepted

Sort by
0
Nils
Top achievements
Rank 1
answered on 18 Dec 2009, 08:10 AM
After having studied the xaml I think I found the Problem.
In the style for the RadDatePicker the RadDatePicker's IsTabStop property is set to false (<Setter Property="IsTabStop" Value="false" />)
whereas in it's Template the PickerTextBox is defined as follows:
<telerik:PickerTextBox Name="InputBox" Column="0" Padding="{TemplateBinding Padding}" IsReadOnly="{TemplateBinding IsReadOnly}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" AcceptsReturn="false" IsEnabled="{TemplateBinding IsEnabled}" IsTabStop="true" Theme="{StaticResource DisabledBrush}" /> 

so I think the following attribute is missing in that line.
TabIndex="{TemplateBinding TabIndex}" 

Yours,
Nils


 
0
Accepted
Kaloyan
Telerik team
answered on 18 Dec 2009, 11:41 AM
Hello Nils,

We are sorry for the problem caused. The issue is in the missing TemplateBinding of the TabIndex as you mention. We will include the fix in the latest internal build. 

Sincerely yours,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
liza g
Top achievements
Rank 1
answered on 09 Feb 2010, 04:19 PM
hi
Can you update the forum when the problem will be fix,
and the new version will include it, please?
Thanks
0
Nils
Top achievements
Rank 1
answered on 09 Feb 2010, 04:28 PM
Hi.
The problem is fixed in the current 2009Q3Sp2 (2009.3.1314) - however not mentioned in the version notes.
If you're using an older version, this may help:
<telerik:RadDatePicker.Resources> 
  <Style TargetType="{x:Type telerik:PickerTextBox}"
    <Setter Property="TabIndex" 
            Value="40" /> 
  </Style> 
</telerik:RadDatePicker.Resources> 


Note that this fix no longer works in the current 2009Q3Sp2.

Nils
0
liza g
Top achievements
Rank 1
answered on 09 Feb 2010, 05:11 PM
hi,
Thanks for answering!
I have one more problem now,
when I got focus with Tab into RadDatePicker 
it deletes the value,
how can I set it to behave like other controls and to leave the value there?

0
Nils
Top achievements
Rank 1
answered on 11 Feb 2010, 12:46 PM
I can not confirm this behaviour, which version are you using ?
0
Kaloyan
Telerik team
answered on 12 Feb 2010, 08:25 AM
Hi Nils,

We have tried to reproduce this behavior with the latest build but without any success. You can share some code project or try it out with some of the latest build of the controls.

Best wishes,
Kaloyan
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.
0
Nils
Top achievements
Rank 1
answered on 12 Feb 2010, 08:46 AM
Kaloya,
I do not have the problem described by liza g. I am also unable to reproduce the described behaviour.

Nils
0
Kaloyan
Telerik team
answered on 17 Feb 2010, 09:16 AM
Hello Nils,

Sorry for the misleading. The post is in concern of  Liza g's problem.

Kind regards,
Kaloyan
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.
0
rob mays
Top achievements
Rank 1
answered on 08 Apr 2010, 03:27 PM
please can you help with tabbing order
It tabs into the textbox of the control then it tabs to the icon of the control, how I stop the tab to the icon so as it only tabs to the textbox only?
0
Nils
Top achievements
Rank 1
answered on 08 Apr 2010, 03:53 PM
rob:
I don't have this problem (not in the lated version, anyway). The tab-ordering works good (at least for me it does...) since version 2009.3.1314
Which version are you using ?

Nils
0
rob mays
Top achievements
Rank 1
answered on 08 Apr 2010, 03:56 PM
yes but can you see it takes two tabs to get off the control, one for the textbox and one for the icon,, try it
0
Nils
Top achievements
Rank 1
answered on 08 Apr 2010, 05:06 PM
Currently I am using 2009.3.1426.35 (which is an internal build, I think) and: No, the only tab-stop I get is inside the textbox. I see no tab-stops at the icon.
0
Kaloyan
Telerik team
answered on 14 Apr 2010, 08:59 AM
Hi Nils,

We have tried to reproduce the issue with the latest official release (Q1 2010) and there are no problems regarding the tab ordering.

All the best,
Kaloyan
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.
0
rob mays
Top achievements
Rank 1
answered on 14 Apr 2010, 12:25 PM
why does the control have 2 tab stops one for textbox and one for the calander icon?
0
Kaloyan
Telerik team
answered on 20 Apr 2010, 12:19 PM
Hello rob mays,

Sorry for the late response. The RadDatePicker control provides users with the possibility to navigate throughout its parts as the user may want to enter a value directly in the TextBox when not using the button and vice versa. That's why the Tab navigation includes both of the control(TextBox and Button).

Greetings,
Kaloyan
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.
0
Shawket
Top achievements
Rank 1
answered on 18 Dec 2012, 05:41 PM
I have a raddatepicker calendar control tab navigation issue,  when user tab to the icon then click 'Enter' key the calendar popup opens,  it will allow keyboard user to tab throught the dates on the calendar, but it will tab out to the top of main page without closing out the popup calendar at the end of the calendar. I was expecting it tabs to the next control on the page  and hide the popup instead of focusing on the control at top of the page and keep the calender popup open. Can anyone help? It will be highly appreciated.

Regards,
Mehsut
0
Boyan
Telerik team
answered on 21 Dec 2012, 10:03 AM
Hi Shawket,

Currently the DropDown is not closing on pressing Tab, due to the fact that it is getting the focus and you can navigate with the keyboard, however we can't reproduce the issue where the focus is going to the first control on the page.

Could you please send us a short video what happens at your side, so we can investigate it. Also could you please share what version of the controls you are using.

Greetings,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Shawket
Top achievements
Rank 1
answered on 27 Dec 2012, 06:01 PM
Thanks for your reply Boyan. The version I am using is v2.0.50727, but as I know it happens on our system test environment where it has latest version. You said you were not able to repeat the issue,  where does the focus go after you tab through all the dates on the raddatepicker calendar popup? next control?
Please check the screen shots and steps  below so you can understand the issue:

1) Step 1: click on calendar icon, popups calendar control;
2) Step 2: tab through the calendar dates;
3) Step 3: tab till the last date on the calendar;
4) Step 4:  continue tab, you will find the popup remain open but focus goes to the other controls on the page.

The expected result of the last step should be :  the popup calendar closes and focus moves to the next control.  Any idea on how to address the issue?

Thanks,
Shawket M

0
Boyan
Telerik team
answered on 02 Jan 2013, 12:12 PM
Hi Shawket,

I need the version of our assemblies that shows the Q/date that were released(version field if checked in VS), v2.0.50727 is the .Net runtime version. I noticed that you are using a custom style for the control, could you please check if the behavior will be the same if you remove the style as this problem can be related to the some element in the Style.

All the best,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Shawket
Top achievements
Rank 1
answered on 02 Jan 2013, 02:50 PM
Hi Boyan,
The version is 2009.3.1208.20.  Thanks,
Shawket

0
Boyan
Telerik team
answered on 07 Jan 2013, 09:32 AM
Hello Shawket,

I tried with the version you mentioned but the focus is still not going to the first control on the page. Did you try removing the custom style? Just to mention you are using rather old version and few years ago we almost completely rewrote the control.

Regards,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DatePicker
Asked by
Nils
Top achievements
Rank 1
Answers by
Nils
Top achievements
Rank 1
Kaloyan
Telerik team
liza g
Top achievements
Rank 1
rob mays
Top achievements
Rank 1
Shawket
Top achievements
Rank 1
Boyan
Telerik team
Share this question
or