dhtmlx combo custom filter mode

Hi,sir.I am using dhtmlxCombo in my project.How can i filter options useing my custom filter mode?

Please refer the below example,and help me.

XML:

<?xml version="1.0"?>



L20/L17





JS: combo.loadXMLString(str);

combo.enableFilterMode(True);



Now,i need fileter this option text in combo when i type “L17”.(type L20 is ok actually.)



THX.


Please, locate the following line in the dhtmlxcombo.js (line 960):


var filter=new RegExp("^"+text,“i”)


and replace it with


var filter=new RegExp(text,“i”)


In thsi case the text will be search from any position.