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

Pressing Tab does not closes the message window in drop down

1 Answer 66 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Imtiaz
Top achievements
Rank 1
Imtiaz asked on 27 Dec 2008, 07:51 AM
Hi

1. Type some search term which leads to positive result(s)
2. Erase the search term by using the backspace key
3. Tab out of the text box to the adjacent button

It continues showing "Enter a search phrase" expectation is that it should close the dropdown message on Tab key press. Here is how it is defined

 

<telerik:RadComboBox   
                            Id="SearchCombo" 
                            Runat="server" 
                            EnableLoadOnDemand="True" 
                            OnItemsRequested="SearchCombo_ItemsRequested" 
                            LoadingMessage="Searching..." 
                            EmptyMessage="Search ..." 
                            Height="15px" 
                            Width="315px" 
                            DropDownWidth="400px" 
                            Skin="Sunset" 
                            OnSelectedIndexChanged="SearchCombo_SelectedIndexChanged" 
                            OnClientItemsRequesting="HandleRequestStart" 
                            OnClientKeyPressing="HandleKeyPress" 
                            BorderColor="Transparent" 
                            CollapseDelay="200" 
                            ExpandDelay="300" 
                            ItemRequestTimeout="200" 
                            ShowDropDownOnTextboxClick="False" 
                            ShowWhileLoading="False" 
                            AutoPostBack="true" 
                            ShowToggleImage="False" 
                            ShowMoreResultsBox="True" 
                            CausesValidation="False" 
                            OnClientItemsRequested="HandleRequestEnd" 
                            OnClientBlur="OnClientBlur" 
                            HighlightTemplatedItems="True">  
                            <ItemTemplate> 
                                <div  class="AssocSearchItemContainer" > 
                                    <div style=" float:left;">  
                                        <img alt='<%# Eval("Title")%>' height="40px" src='<%# Eval("ThumbnailURL")%>' /> 
                                    </div> 
                                    <div class="AssocSearchItemTextBlock">  
                                        <strong><%# Eval("Title")%></strong><br /> 
                                        <%# Eval("Description")%><br /> 
                                        <%# Eval("Details")%><br /> 
                                    </div> 
                                </div> 
                            </ItemTemplate> 
                            <CollapseAnimation Duration="100" Type="OutQuint" /> 
                            <ExpandAnimation Type="None" /> 
                        </telerik:RadComboBox> 

 

protected void SearchCombo_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)  
{  
 
....  
....  
            if (searchPhrase.Length == 0)  
            {  
                comboBox.ClearSelection();  
                comboBox.Height = 0;  
                e.Message = "Enter a search phrase.";  
                return;  
            }  
 
....  
....  

 

Thanks
Imtiaz

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 29 Dec 2008, 10:07 AM
Hi Imtiaz ,

I'm afraid that I'm not able to reproduce the issue with the provided code. Could you please send us a working example illustrating the problem so we to be able to test it? Thanks

Greetings,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Imtiaz
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or