Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: Typing not allowed in ComboBox until list shown [27350]

$
0
0
Notice if you place the cursor in the TextBox on the http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ComboBox/ComboBox.aspx page that you cannot type anything until one of the items in the drop down list is selected. This can be corrected by adding __" && this._optionListItems.length == 0"__ to the if statement below "prevent typing when there are no items in the list" on line 834 of the ComboBox.pre.js file:

```
// prevent typing when there are no items in the list
if (this.get_selectedIndex() == -1 && this.get_dropDownStyle() == Sys.Extended.UI.ComboBoxStyle.DropDownList && this._optionListItems.length == 0) {
this.get_textBoxControl().value = '';
e.preventDefault();
e.stopPropagation();
return false;
}

```

Comments: The combobox (version 3.5.50731.0) works fine in firefox (tested with version 6.0) but version 4.1.7.123 and/or above do not allow typing in the textbox, neither after showing the list nor after selecting an item from the list. I figured no problem with Google Chrome (Version 24.0.1312.57 m) in both of the versions. Even the solution suggested above to modify line 834 of ComboBox.pre.js does not solve this bug.

Viewing all articles
Browse latest Browse all 4356

Trending Articles