I use combobox with autocomplete.
And I need show default list of options when user click on combo.
How I can do it?
Now I use code
var z_unit = new dhtmlXCombo("unit_id", "unit_id", 170);
z_unit.enableFilteringMode('between', "?action=get_unit_xml", true, false);
z_unit.setOptionHeight(340);
.
I can’t use LoadXML, becouse I search simbols in all word, not in start position.
combo.loadXML(defaultUrl);
var ev = combo.attachEvent(“onKeyPressed”,function(){
combo.enableFilteringMode(“between”,url,true,true);
this.detachEvent(ev);
})
combo.loadXML("…/___xml/combo_filter.xml");
var ev = combo.attachEvent(“onKeyPressed”,function(){
combo.enableFilteringMode(“between”,"…/dhtmlxCombo/samples/04_filtering/php/complete.php",true,true);
this.detachEvent(ev);
document.onkeyup = function() {
if (combo.getComboText() == “”){
combo.loadXML("…/___xml/combo_filter.xml");
combo.openSelect(); //iа you need it
}
}
})
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan