On Demand ComboBox losing focus when drop-down drawing above text box

6 posts, 0 answers
  1. Thomas Mittag
    Thomas Mittag avatar
    20 posts
    Member since:
    Jun 2008

    Posted 30 Sep 2012 Link to this post

    I am having an issue with a RadComboBox on a page.  The combo box is set up to use OnDemand loading. 
    In IE8, when the drop-down is in the lower part of the page, the combo box is losing the focus in the input field when the On Demand list is being refreshed and the Drop-down box is rendered above the input field.

    This is causing issues, because when the focus is lost and the user pressed the backspace button the browsers back button appears to be invoked, navigating the user away from the page.

    Is there a way to set the focus back to the input control after the on demand items are retrieved?

    Thanks
    Thomas Mittag
  2. Nencho
    Admin
    Nencho avatar
    1799 posts

    Posted 01 Oct 2012 Link to this post

    Hi Thomas,

    I tried to replicate the experienced problem, but to no avail. Could you provide us the implementation of the RadComboBox at your end or open a support ticket along with a runnable sample which demonstrates the problematic behavior?

    Kind regards,
    Nencho
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Thomas Mittag
    Thomas Mittag avatar
    20 posts
    Member since:
    Jun 2008

    Posted 01 Oct 2012 Link to this post

    After debugging a bit more I have determined that it actually happens when the drop-down switches postion. For example as described in the post above, when the drop-down is further down in the page, assuming the user has entered an invalid filter string, the drop down will appear below the input field because the list is empty and does not requires very much space. When the user begins to press backspace and with the reduced filter string, items begin to appear in the drop-down it flips to above the input field due to space restrictions below the input field, and that is when the focus is lost.
    I have done some debugging in the telerik scripts, and if I do a $(mycbo.get_inputDomElement()).focus() after function_positionDropDown() in RadComboBox it works correctly.

    Regards
    Thomas
  4. Nencho
    Admin
    Nencho avatar
    1799 posts

    Posted 02 Oct 2012 Link to this post

    Hi Thomas,

    Thank you for getting back to us.

    I am glad to hear that you solved the problem yourself. Please, do not hesitate to contact us again if you have further questions.

    Greetings,
    Nencho
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  5. Thomas Mittag
    Thomas Mittag avatar
    20 posts
    Member since:
    Jun 2008

    Posted 02 Oct 2012 Link to this post

    Nencho,

    I would not consider this a solution, rather a workaround at this point. I do believe there is a bug in the RadComboBox.js script when invoking function _positionDropDown in your tools and it should be fixed by your development team.

    Regards
    Thomas
  6. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 05 Oct 2012 Link to this post

    Hi Thomas Mittag,

    In order to investigate the issue at debug the RadComboBox code - we need to reproduce it locally.
    For this purpose we need a clear test case.

    Could you please open a support ticket and send us a simplified compilable web page where we will be able to observe the issue?
    Thank you in advance for your collaboration.

    Regards,
    Kalina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top