RadDropDownList focus bug

13 posts, 0 answers
  1. Frank Beerens
    Frank Beerens avatar
    26 posts
    Member since:
    Jan 2010

    Posted 03 Apr 2013 Link to this post

    Hi,

    I found a bug when adding a few input controls like textboxes etc on a form, in combination with the raddropdownlist (DropDownStyle = DropDownList). When pressing the tab key to focus the next control, everything works normally with the textboxes, but when the dropdownlist gets focus, there is no visual feedback to see which control has the focus. After manually clicking the dropdownlist, the tab key focus works as it should do.

    Tested with the winforms product, version 2013.1 321 (mar. 21, 2013) on a Windows 7 machine 64 bit, with the VisualStudio2012Light theme.

    PS, I wanted to add this bug in your tracking system, but the RadDropDownList is not in the selection where you should choose the bug-related control. This list could also be sorted alphabetically, which makes finding the right control much easier ;)
  2. Louis
    Louis avatar
    2 posts
    Member since:
    Jul 2008

    Posted 05 Apr 2013 Link to this post

    Yes, we have same propblem.
    Is there any way to bypass this?
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 05 Apr 2013 Link to this post

    Hello guys, 

    Thank you for writing.

    For the time being the
    RadDropDownList does not support such selection indicator and I logged it in our public issue tracking system as feature request. Feel free to add your vote for it and subscribe for its status updated. The more votes an item gets the higher it goes in our priority list.

    As a workaround you can change the
    DropDownList BackColor when control contains focus:
    this.radDropDownList1.GotFocus += new EventHandler(radDropDownList_GotFocus);
    this.radDropDownList1.LostFocus += new EventHandler(radDropDownList_LostFocus);
     
    void radDropDownList_LostFocus(object sender, EventArgs e)
    {
        RadDropDownList dropDownList = (RadDropDownList)sender;
        dropDownList.DropDownListElement.EditableElement.ResetValue(LightVisualElement.BackColorProperty, Telerik.WinControls.ValueResetFlags.Local);
    }
     
    void radDropDownList_GotFocus(object sender, EventArgs e)
    {
        RadDropDownList dropDownList = (RadDropDownList)sender;
        dropDownList.DropDownListElement.EditableElement.BackColor = Color.AliceBlue;
    }

    @Frank - your Telerik Points have been updated for this report.

    Kind regards,
    Peter
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  5. Blair
    Blair avatar
    3 posts
    Member since:
    May 2011

    Posted 24 Apr 2013 Link to this post

    This... is... a... BUG.

    It worked in previous versions. It is not a feature that I should have to "feel free" to go vote for to get back. Your workaround does nothing practical.

    The quick data entry person will tab to the control. They will then attempt to press F4 which is supposed to drop down the list. Did this used to work? Yes. Does it work now? No.

    The data entry person may tab to the control and then start hitting the first letter of the item they want to get to the right item. Did this used to work? Yes. Does it work now? No.

    I have tried this for the moment in the GotFocus event and it seems to work (this is in VB):

            Dim c As Telerik.WinControls.UI.RadDropDownList

            If (TypeOf sender Is Telerik.WinControls.UI.RadDropDownList) Then
                c = CType(sender, Telerik.WinControls.UI.RadDropDownList)

                If (c.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList) AndAlso (Not c.DropDownListElement.ContainsFocus) Then
                    c.DropDownListElement.Focus()
                End If
            End If



    If you think there are negative ramifications to this, please feel free to comment :)
    Thanks
  6. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 29 Apr 2013 Link to this post

    Hello Blair,

    Thank you for writing and for sharing your solution for this with the community. We will improve this behavior in our next releases.

    Should you have any other questions or suggestions, do not hesitate to contact us.

    Greetings,
    Peter
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  7. Peter
    Peter avatar
    3 posts
    Member since:
    Jan 2011

    Posted 30 May 2013 Link to this post

    I just want to add my support to Blair here. This is  a indeed a bug!

    It is currently impossible to get the RadDropDownList with DropDownStyle set to DropDownList to work using only the keyboard at first. Not until you have actually clicked on the control with the mouse will it respond in the normal expected fashion to key presses.

    The workaround Blair has posted seems to fix the problem for now, so thank you for that Blair!

    I sincerely hope this is fixed in the next release!
  8. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 04 Jun 2013 Link to this post

    Hello Peter,

    Thank you for your feedback.

    We will consider your opinion when planning our future releases. For the time being you should use Blair's workaround.

    Thank you for your cooperation.

    Regards,
    Peter
    Telerik
    RadChart for WinForms is obsolete. Now what?
  9. Bob
    Bob avatar
    7 posts
    Member since:
    Dec 2011

    Posted 14 Aug 2013 Link to this post

    I also have found this to be a deviation from any type of normal data entry controls. The feature was working, when I installed the dll version update that changed it, I had to uninstall and go back to the old version. I recently upgraded, thinking that surely this bug was fixed only to find that it is still not working in a manner that could be deemed as 'normal' for UI control navigation. When tabbing into one of these drop downs, the user no longer knows which control has focus. I'm going to try the workaround listed above, but this is a huge bug.

    You guys are doing a great job with these controls. But this really should be fixed.

    Thanks for your workaround Blair. You saved me from having to roll back to the old DLL version. Without the workaround, this was going to cost me a lot of time.
  10. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 19 Aug 2013 Link to this post

    Hi Bob,

    Thank you for sharing your opinion about this issue. We will address it in one of our next releases. 
    For the time being you should use the Blair's workaround.

    Should you have any other questions or suggestions, do not hesitate to contact us.

    Regards,
    Peter
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  11. Kim
    Kim avatar
    47 posts
    Member since:
    Jul 2013

    Posted 19 Aug 2013 Link to this post


    I just created a new custom control, inheriting The drop down. That way you dont have to add the code all over the place.

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Drawing;
    using System.Data;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    namespace PSI.BisTrack.Controls
    {

        public partial class DropDownControl : Telerik.WinControls.UI.RadDropDownList
        {
            public DropDownControl()
            {
                InitializeComponent();
                this.GotFocus += new System.EventHandler(DropDownControl_GotFocus);
                this.LostFocus += new System.EventHandler(DropDownControl_LostFocus);
                this.Click += new EventHandler(DropDownControl_Click);       

            }

            void DropDownControl_Click(object sender, EventArgs e)
            {
                this.DropDownListElement.EditableElement.SelectAll();
                this.DropDownListElement.EditableElement.Focus();
            }

            void DropDownControl_LostFocus(object sender, EventArgs e)
            {

            }

            void DropDownControl_GotFocus(object sender, EventArgs e)
            {
                if (this.ShowFocusCues)
                {
                    this.DropDownListElement.EditableElement.SelectAll();
                    this.DropDownListElement.EditableElement.Focus();
                }
            }

        }
        }
  12. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 21 Aug 2013 Link to this post

    Hi Kim,

    Thank you for sharing your solution with the community. We will apply a fix similar to yours as soon as possible.

    I have updated your Telerik points for the cooperation.

    Regards,
    Peter
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  13. Wayne
    Wayne avatar
    36 posts
    Member since:
    May 2013

    Posted 02 Sep 2013 Link to this post

    Thanks for the workaround Blair.

    I'm disappointed in this...at least I was able to find this post...
  14. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 03 Sep 2013 Link to this post

    Hello Wayne,

    I would like to inform you that we will do our best to provide a focus indication in our next release. Please, excuse us for the inconvenience. 

    Regards,
    Peter
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready