Is it possible to have the combo autocomplete, but not filter the options?
Thanks
jc5
Is it possible to have the combo autocomplete, but not filter the options?
Thanks
jc5
There is not such a public functionality. However, you may try to use the following approach (filtering should be disabled):
combo.attachEvent("onKeyPressed",doAutoComplete);
var timer;
function doAutoComplete(){
window.clearTimeout(timer);
timer = window.setTimeout(function(){
var option;
var text = combo.getComboText();
for(var i=0; i< combo.optionsArr.length; i++){
if(combo.optionsArr[i].text.indexOf(text)==0){
option = combo.optionsArr[i];
break;
}
}
if (option){
combo.setComboText(option.text);
dhtmlXRange(combo.DOMelem_input,text.length+1,option.text.length);
}
},100);
}
Thanks,
jc