Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dennis on Feb 12, 2008 12:08
open dhtmlx forum
Case sensitivity mode?

Is there a case sensitivity off mode? I have enabled filtering mode turned on and the results returned are in upper case. If I type out the entire entry in lower case and leave focus it treats the entry as a new one. I have to match the casing with the entries returned for it to be recognized.

Example:

'ABC DEF' return value

I type 'abc def' and leave focus, it is not recognized. I have to type 'ABC DEF' and leave focus to get it recognized.
Answer posted by Support on Feb 13, 2008 03:25
It can be changed by next code modification

dhtmlxcombo.js, line 195

   dhtmlXCombo.prototype.getOptionByLabel = function(value)
   {
      value=value.replace(/&/g,"&")
      for(var i=0; i<this.optionsArr.length; i++)
             if(this.optionsArr[i].text.toString().toLowerCase()==value.toString().toLowerCase()// << this line need be changed