AJAX控件AutoCompleteExtender 如何将默认选项定位到第一条记录这个控件默认情况下,是没有默认项,需要选择才可以。
如果修改他的元代码 应该修改什么呢? _onGotFocus: function(ev) {
/// <summary>
/// Handler for textbox focus event.
/// </summary>
/// <param name="ev" type="Sys.UI.DomEvent" DomElement="false" mayBeNull="false" />
/// <returns />
this._textBoxHasFocus = true;
if (this._flyoutHasFocus) {
// hide the flyout now that the focus is back on the textbox
this._hideCompletionList();
}
if ((this._minimumPrefixLength == 0) && (!this.get_element().value)) {
this._timer.set_enabled(true);
// only start the timer if the minimumprefixlength is 0
// since we would like to retrieve results even if
// the user has not entered any text and the textbox is empty.
}
},
如果修改他的元代码 应该修改什么呢? _onGotFocus: function(ev) {
/// <summary>
/// Handler for textbox focus event.
/// </summary>
/// <param name="ev" type="Sys.UI.DomEvent" DomElement="false" mayBeNull="false" />
/// <returns />
this._textBoxHasFocus = true;
if (this._flyoutHasFocus) {
// hide the flyout now that the focus is back on the textbox
this._hideCompletionList();
}
if ((this._minimumPrefixLength == 0) && (!this.get_element().value)) {
this._timer.set_enabled(true);
// only start the timer if the minimumprefixlength is 0
// since we would like to retrieve results even if
// the user has not entered any text and the textbox is empty.
}
},
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货