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: Originally discovered this issue in IE9 and just confirmed that it is still an issue in IE10 as well.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>