Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Nixon on Nov 27, 2008 23:12
open dhtmlx forum
Search query string is overwritten

Hi Support,

I m using dhtmlx combo ,i have modified Regx for substring match in whole string, after searching,the first search record overwrite the text in search text box and the search query is lost , how do i stop this overwritting in text box

Regards
Nixon
Answer posted by Support on Nov 28, 2008 01:48
In filtration mode, combo takes first match from list of options, and autocomplete existing value with it, probably after your modification autocomplete can't work correctly which cause issues. 

You can try to comment next lines in dhtmlxcombo.js 
lines 866-873
  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