Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rodrigues on Nov 07, 2008 04:52
open dhtmlx forum
Different searching pattern for autocomplete

I m using Combo from dhtmlx,right now searching for autocomplete starts from start of string
,can we configure it make it search substring in between of string?

for eg when search '100' should output result like below

100x100-Mychanel
Channel-100X100
some-100-channel

Let me know how this is possible

Thanking you for great support

Rodrigues
Answer posted by Support on Nov 10, 2008 09:37
Can't be configured, but can be easily changed
dhtmlxCombo.js , line 980
var filter=new RegExp("^"+text,"i");
replace with 
var filter=new RegExp(text,"i");