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

Dropdown list opens on keypress

5 Answers 229 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 29 Oct 2008, 12:37 PM
Hello!

When I enter something into the radComboBox the dropdown list automatically opens. How can I disable this behavior? The list should only when user presses the arrow for the combobox.

Thanks in advance and regards
Markus Weber

5 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 29 Oct 2008, 01:11 PM
Hello Markus,

Do you use Load on demand or autocomplete features?

You can try setting the ShowDropDownOnTextboxClick property to False.


Kind regards,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Markus
Top achievements
Rank 1
answered on 29 Oct 2008, 01:16 PM
Hello Veselin,

her eis the code I use for the combobox as you can see you suggested proeprty is already set to "False". The property is working for mouse clicks well but not for "Keypress".

                                                <telerik:RadComboBox ID="rcboJobNo" runat="server" AutoPostBack="True" DropDownWidth="700px" EnableLoadOnDemand="true" Font-Names="Verdana,Tahoma,Helvetica" Height="200px" HighlightTemplatedItems="True" ItemRequestTimeout="500" LoadingMessage="Lade Daten..." MarkFirstMatch="false"  ShowDropDownOnTextboxClick="False" Skin="Outlook" Width="100px" ZIndex="10000" AllowCustomText="True">  
                                                    <HeaderTemplate> 
                                                        <table style="font-weight: bold; background-color: #B0D2FF; color: #204D89;">  
                                                            <tr> 
                                                                <td style="width: 100px;">  
                                                                    Auftrag  
                                                                </td> 
                                                                <td style="width: 300px;">  
                                                                    Auftragsstichwort  
                                                                </td> 
                                                                <td style="width: 150px;">  
                                                                    Matchcode  
                                                                </td> 
                                                                <td style="width: 150px;">  
                                                                    Kundenname  
                                                                </td> 
                                                            </tr> 
                                                        </table> 
                                                    </HeaderTemplate> 
                                                    <ItemTemplate> 
                                                        <table> 
                                                            <tr> 
                                                                <td style="width: 100px;">  
                                                                    <%#DataBinder.Eval(Container.DataItem, "JobNo")%> 
                                                                </td> 
                                                                <td style="width: 300px;">  
                                                                    <%#DataBinder.Eval(Container.DataItem, "JobDesc")%> 
                                                                </td> 
                                                                <td style="width: 150px;">  
                                                                    <%#DataBinder.Eval(Container.DataItem, "Matchcode")%> 
                                                                </td> 
                                                                <td style="width: 150px;">  
                                                                    <%#DataBinder.Eval(Container.DataItem, "ClientName")%> 
                                                                </td> 
                                                            </tr> 
                                                        </table> 
                                                    </ItemTemplate> 
                                                    <CollapseAnimation Duration="200" Type="None" /> 
                                                    <ExpandAnimation Type="None" /> 
                                                </telerik:RadComboBox> 
 


Regards Markus
0
Accepted
Veselin Vasilev
Telerik team
answered on 03 Nov 2008, 02:41 PM
Hello Markus,

I have prepared a simple page for you. Please download it and give it a try.

I hope this helps.

Best wishes,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Markus
Top achievements
Rank 1
answered on 04 Nov 2008, 10:46 AM
Hello Veselin!

Thats exactly what I need and I get it work in my project, thanks alot!

For easier handling of this behaviour a property "ShowDropDownOnTextboxClick" for the combobox would be helpful.

Regards Markus
0
Numan
Top achievements
Rank 1
answered on 11 Mar 2009, 08:38 AM
Hello Veselin,

In your example,
First dropdownopening event fired and then imageclick event fired. Therefore, no dropdown has shown at first click. But second click dropdown has shown.

How can i fire image click event first?

Thanks.
Tags
ComboBox
Asked by
Markus
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Markus
Top achievements
Rank 1
Numan
Top achievements
Rank 1
Share this question
or