Click here to Skip to main content
15,880,972 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I am trying to get a dropdownlist tied to a textbox using the dropdown extender. I am able to get it working except the drop down list does not expand to show all items, unless you hold down the mouse button and drag the mouse. Is there a way to force the dropdownlist to expand and wait until an item is selected? Is there a better alternative to accomplish the same thing?

ASP.NET
 <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Reviewer1Title") %>' />  
                                     <asp:DropDownExtender ID="TextBox1_DropDownExtender" runat="server" 
                                        DynamicServicePath="" Enabled="True" TargetControlID="TextBox1" DropDownControlID="DropDownList3">
                                    
                                    <asp:DropDownList ID="DropDownList3" runat="server" 
                                        DataSourceID="SqlDataSource1" DataTextField="Reviewer1Title" 
                                        DataValueField="Reviewer1Title">
                                    
                                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                        ConnectionString="<%$ ConnectionStrings:PKLConnectionString %>" SelectCommand="SELECT tblEvaluationListing.Reviewer1Title
FROM tblEvaluationListing
GROUP BY tblEvaluationListing.Reviewer1Title
HAVING ((Not (tblEvaluationListing.Reviewer1Title) Is Null));">
Posted
Updated 28-Nov-11 16:44pm
v2
Comments
[no name] 28-Nov-11 22:44pm    
EDIT: added "pre" tag

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900