Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FireFox and AjaxControlToolKit Combobox

Tags:

ajax

asp.net

I'm using the .NET framework 4.0 and the corresponding version of the Ajax control toolkit.

On my page I have a combobox defined like this:

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

In IE9 the combobox allows me to either type in it or select from the list of users. In FireFox, however, it's not letting me type in the box. The dropdownlist also doesn't filter when I'm typing in FireFox either. I'm wondering if anyone else has seen this behavior, and if there's a work-around?

EDIT

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

like image 822
Tim Avatar asked Jul 17 '12 13:07

Tim


2 Answers

I was also getting the problem of not being able to enter text into a Combobox in FireFox, but I could in IE and Chrome. After a day of looking into the problem I found that setting the MaxLength property to something greater than 0 allowed FireFox to accept entry in the text field for the combobox.

I hope this helps someone having the same problem.

like image 191
Bob Avatar answered Nov 10 '22 14:11

Bob


ddlBox.SelectedIndex = 0

Until the latest iteration of Ajax control toolkit, I didn't need to set that. But then I updated, and I couldn't type into the empty text box, which used to be displayed with the first item. So I added that code and it works fine again.

like image 43
Paul Avatar answered Nov 10 '22 14:11

Paul