RadDatePicker and TabIndex

23 posts, 1 answers
  1. Nils
    Nils avatar
    46 posts
    Member since:
    Jul 2009

    Posted 15 Dec 2009 Link to this post

    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
  2. Nils
    Nils avatar
    46 posts
    Member since:
    Jul 2009

    Posted 18 Dec 2009 Link to this post

    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


     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Answer
    Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 18 Dec 2009 Link to this post

    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.
  5. liza g
    liza g avatar
    24 posts
    Member since:
    Dec 2009

    Posted 09 Feb 2010 Link to this post

    hi
    Can you update the forum when the problem will be fix,
    and the new version will include it, please?
    Thanks
  6. Nils
    Nils avatar
    46 posts
    Member since:
    Jul 2009

    Posted 09 Feb 2010 Link to this post

    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
  7. liza g
    liza g avatar
    24 posts
    Member since:
    Dec 2009

    Posted 09 Feb 2010 Link to this post

    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?

  8. Nils
    Nils avatar
    46 posts
    Member since:
    Jul 2009

    Posted 11 Feb 2010 Link to this post

    I can not confirm this behaviour, which version are you using ?
  9. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 12 Feb 2010 Link to this post

    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.
  10. Nils
    Nils avatar
    46 posts
    Member since:
    Jul 2009

    Posted 12 Feb 2010 Link to this post

    Kaloya,
    I do not have the problem described by liza g. I am also unable to reproduce the described behaviour.

    Nils
  11. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 17 Feb 2010 Link to this post

    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.
  12. rob mays
    rob mays avatar
    58 posts
    Member since:
    Jun 2007

    Posted 08 Apr 2010 Link to this post

    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?
  13. Nils
    Nils avatar
    46 posts
    Member since:
    Jul 2009

    Posted 08 Apr 2010 Link to this post

    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
  14. rob mays
    rob mays avatar
    58 posts
    Member since:
    Jun 2007

    Posted 08 Apr 2010 Link to this post

    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
  15. Nils
    Nils avatar
    46 posts
    Member since:
    Jul 2009

    Posted 08 Apr 2010 Link to this post

    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.
  16. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 14 Apr 2010 Link to this post

    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.
  17. rob mays
    rob mays avatar
    58 posts
    Member since:
    Jun 2007

    Posted 14 Apr 2010 Link to this post

    why does the control have 2 tab stops one for textbox and one for the calander icon?
  18. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 20 Apr 2010 Link to this post

    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.
  19. Shawket
    Shawket avatar
    3 posts
    Member since:
    Dec 2012

    Posted 18 Dec 2012 Link to this post

    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
  20. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 21 Dec 2012 Link to this post

    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.

  21. Shawket
    Shawket avatar
    3 posts
    Member since:
    Dec 2012

    Posted 27 Dec 2012 Link to this post

    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

  22. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 02 Jan 2013 Link to this post

    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.

  23. Shawket
    Shawket avatar
    3 posts
    Member since:
    Dec 2012

    Posted 02 Jan 2013 Link to this post

    Hi Boyan,
    The version is 2009.3.1208.20.  Thanks,
    Shawket

  24. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 07 Jan 2013 Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready