Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Wasi on Jan 25, 2009 23:43
open dhtmlx forum
dhtml combo box disable autocomplete feature causing problem

I am very happy to see dhtmlx working properly as far as i want autocomplete feature. But as i make the following changes

if (text!=data[1]){
// this.setComboText(data[1]);
// dhtmlXRange(this.DOMelem_input,text.length+1,data[1].length);
}

the autocomplete feature disbaled but the problem i am facing is appeared when i filter the options and when it reaches a option where is only one option appears the keydown effect won't work and i can't select the option by pressing the keydown.

SORRY FOR MY POOR ENGLISH
Answer posted by Support on Jan 26, 2009 02:27
Instead of commenting mentioned lines, you can update code as

/*  if (filter){
  var text=this.getComboText();
  if (text!=data[1]){
  this.setComboText(data[1]);
  dhtmlXRange(this.DOMelem_input,text.length+1,data[1].length);
  }
  }
  else */
  this.setComboText(data[1]);

In such case it will fully disable auto-complete, while preserving all other functionality