Categories | Question details Back To List | ||
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"?> <complete> <option value="L20/L17">L20/L17</option> </complete> 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. Answer posted by Alex (support) on Aug 27, 2009 03:26 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. |