CloseDropDownOnBlur doesn't always work with LoadOnDemand

3 posts, 0 answers
  1. Brad
    Brad avatar
    39 posts
    Member since:
    Aug 2010

    Posted 29 Nov 2010 Link to this post

    I have a RadComboBox using LoadOnDemand with CloseDropDownOnBlur set to true. I also let the user enter custom text. However, if the user enters the text and tabs out of the field before the combo is done "loading" the values, the dropdown won't disappear until you go back to the cell and leave it again.

    Any ideas?
  2. Brad
    Brad avatar
    39 posts
    Member since:
    Aug 2010

    Posted 02 Dec 2010 Link to this post

    Is everyone on vacation?
  3. Kalina
    Kalina avatar
    918 posts

    Posted 03 Dec 2010 Link to this post

    Hi Brad,

    Let me suggest you handle the pageLoad client-side event and within the handler function attach "keydown" event at RadComboBox input.
    Then you can easily hide the dropdown if the Tab key has been pressed:
    <script type="text/javascript">
    function pageLoad() {
        var combo = $find("<%=rcboBookingNum.ClientID %>");
        $telerik.$(combo.get_inputDomElement()).keydown(function (e) {
            if (e.keyCode == 9) {
                if (combo.get_dropDownVisible()) {

    Please find more details at the sample page attached.

    Best wishes,
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top