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

[Solved] AutoSuggest Close

1 Answer 129 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Sanoj
Top achievements
Rank 1
Sanoj asked on 23 Dec 2009, 04:12 PM
I have an radcombobox with an autosuggest,
If no suggestions are found, than the dropdown with the suggestions doesn't close.
Is there anyway to do this?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Dec 2009, 07:47 AM
Hi Sanoj,

Try attaching the OnClientDropDownOpened event for hiding the dropdown when there are no items in the list.

JavaScript:
 
<script type="text/javascript"
    function OnClientDropDownOpened(sender, args) { 
        if (sender.get_visibleItems().length == 0) { 
            sender.hideDropDown(); 
        } 
    } 
</script> 

-Shinu.
Tags
ComboBox
Asked by
Sanoj
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or