A combobox control ONLY allows you to pick up a certain value.
That's not quite right.
masoud-s
for excample when i type "j" in the combo box it finds first match "jack".
Does typing "j" or "m" work for you and it's other letters that you can't type?
Note that you've set the DropDownStyle to DropDownList. In that mode, you can only type letters that will result in a match of one of your items. So from your example above, your initial characters that you can type is limited to "m" or "j" and other characters
will not respond. In other DropDownStyle modes ("Simple","DropDown") you can type values that aren't required to match your list.
And did you address Metal's suggestion of removing maxlength yet? If you leave the length limited to zero... seems like you would not be able to type anything.
I dont think there's any activity on controls in that toolkit so i wouldnt expect to see your Opera issue clear up any time soon. You may want to consider migrating away from anything in the ajax control toolkit as the current direction for things like this
is jQuery.
for example here's an alternative combobox that you could drop in if you are using jQuery
masoud-s
Member
81 Points
196 Posts
i can not type in combo box
Feb 23, 2013 06:50 AM|LINK
i have added ajax combo box to my page, but i can not type in that. also i like when type in that , match items will be filtered.
for excample when i type "j" in the combo box it finds first match "jack".
i had search in google for 2 days but i can not find the solution.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:ComboBox ID="ComboBox1" runat="server" AutoCompleteMode="Suggest" DropDownStyle="DropDownList" MaxLength="0" style="display: inline;"> <asp:ListItem>masoud</asp:ListItem> <asp:ListItem>jack</asp:ListItem> </asp:ComboBox> </ContentTemplate> </asp:UpdatePanel> </div> </form> </body> </html>ToughMan
Participant
1490 Points
635 Posts
Re: i can not type in combo box
Feb 23, 2013 07:30 AM|LINK
A combobox control ONLY allows you to pick up a certain value.
For inputting and choosing, plz use AJAX AutoImplement for TextBox.
http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/autocomplete/autocomplete.aspx
MetalAsp.Net
All-Star
112231 Points
18268 Posts
Moderator
Re: i can not type in combo box
Feb 23, 2013 07:35 AM|LINK
Does it make a difference if you remove the Maxlength attribute?
masoud-s
Member
81 Points
196 Posts
Re: i can not type in combo box
Feb 23, 2013 09:20 AM|LINK
actually i need also arrow of combo box for selecting value,please help how i can do it with combo box?
ToughMan
Participant
1490 Points
635 Posts
Re: i can not type in combo box
Feb 23, 2013 10:05 AM|LINK
Try my way above.
mbanavige
All-Star
134975 Points
15427 Posts
ASPInsiders
Moderator
MVP
Re: i can not type in combo box
Feb 23, 2013 12:07 PM|LINK
That's not quite right.
Does typing "j" or "m" work for you and it's other letters that you can't type?
Note that you've set the DropDownStyle to DropDownList. In that mode, you can only type letters that will result in a match of one of your items. So from your example above, your initial characters that you can type is limited to "m" or "j" and other characters will not respond. In other DropDownStyle modes ("Simple","DropDown") you can type values that aren't required to match your list.
And did you address Metal's suggestion of removing maxlength yet? If you leave the length limited to zero... seems like you would not be able to type anything.
masoud-s
Member
81 Points
196 Posts
Re: i can not type in combo box
Feb 23, 2013 01:33 PM|LINK
i changed the code like below, i can not type in that, just when click for one character it highlights first character in the list "masoud".
<asp:ComboBox ID="ComboBox1" runat="server" AutoCompleteMode="SuggestAppend" DropDownStyle="Simple" style="display: inline;"> <asp:ListItem Value="0">masoud</asp:ListItem> <asp:ListItem Value="1">jack</asp:ListItem> </asp:ComboBox>masoud-s
Member
81 Points
196 Posts
Re: i can not type in combo box
Feb 23, 2013 01:46 PM|LINK
i checked with internal browser it shows matches. but with opera that i am working does not show, it seems this is problem of opera internet browser.
mbanavige
All-Star
134975 Points
15427 Posts
ASPInsiders
Moderator
MVP
Re: i can not type in combo box
Feb 23, 2013 02:01 PM|LINK
I dont think there's any activity on controls in that toolkit so i wouldnt expect to see your Opera issue clear up any time soon. You may want to consider migrating away from anything in the ajax control toolkit as the current direction for things like this is jQuery.
for example here's an alternative combobox that you could drop in if you are using jQuery
http://code.google.com/p/ufd/
sourabh3120
Member
260 Points
69 Posts
Re: i can not type in combo box
Feb 23, 2013 04:57 PM|LINK
ღ ֆσÙяÅ๒ђ ღ
Do Not Forget To "Mark As Answer" To The Post Which Solve Your Problme Or Helps You.