FireFox and AjaxControlToolKit Combobox

I am using the .NET framework 4.0 and the corresponding version of the Ajax management toolkit.

On my page, I have a combo box:

<asp:ComboBox ID="cbUserName" AutoCompleteMode="SuggestAppend" CaseSensitive="false" runat="server" BackColor="#FFFFCC"> </asp:ComboBox> 

In IE9, combobox allows me to either enter it or select from a list of users. However, in FireFox this does not allow me to type in a field. The dropdown does not filter either when I type FireFox. I am wondering if anyone has seen this kind of behavior, and if there is a workaround?

EDIT

For what it's worth, the ASP.NET Ajax Control Toolkit demo actually works great in FireFox.

+6
source share
6 answers

A similar problem was reported here , make sure you used the same version of firefox and toolkit. If you do not try to update them and try again.

0
source

I also had the problem of inability to enter text in Combobox in FireFox, but I could in IE and Chrome. After a day of examining the problem, I found that setting the MaxLength property to something greater than 0 allowed FireFox to accept the entry in the text box for the combo box.

I hope this helps someone having the same issue.

+12
source
 ddlBox.SelectedIndex = 0 

Until the last iteration of the Ajax management toolkit, I didn't need to install this. But then I updated, and I could not enter into the empty text box that used to be displayed with the first element. So I added this code and it works fine again.

+2
source
 <ajaxToolkit:ComboBox ID="ComboBox1" runat="server" DropDownStyle="DropDownList" AutoCompleteMode="SuggestAppend" CssClass="" AppendDataBoundItems="false"> <asp:ListItem>Fox</asp:ListItem> </ajaxToolkit:ComboBox> 

This worked for me in firefox.

I’m not sure if you are mistaken for input, but combobox will only allow you to enter ListItems. so in this case you can enter Fox ..

0
source

I had the same problem. I could not find an elegant solution on the Internet, so I created my own AjaxControlToolkit.dll file from two different sets of source code for the toolkit.

I used everything from the latest version, except that I replaced ComboBox.cs and ComboBox.pre.js with my versions from AjaxControlToolkit_8502f32ba9ce. (~ July 2011)

0
source

Try using:

 ajaxToolkit:ComboBox ID="ComboBox1" runat="server" DropDownStyle="DropDownList" AutoCompleteMode="SuggestAppend" CssClass="" AppendDataBoundItems="false" MaxLength="100" 
0
source

Source: https://habr.com/ru/post/920682/


All Articles