Categories | Question details Back To List | ||
"." in Combobox with search continued (Follow-up to answer) Hello, I've tried the answer and it does work. But I also figured out why it was doing it in my case. I used this XML file with dhtmlXCombo with filtering turned on: <?xml version="1.0" ?> <complete> <option value="4">A TOP</option> <option value="1">A.W.1</option> <option value="2">A.W.2</option> <option value="3">A.W.3</option> <option value="4">A.W.4</option> <option value="5">five</option> <option value="6">six</option> <option value="7">seven</option> <option value="8">eight</option> <option value="9">nine</option> <option value="10">ten</option> </complete> If I try to type "A." it'll automatically change the value to "A TOP", the problem is with the "A TOP" option before "A.W.1", it works fine if "A TOP" is below everything else. Any help would be appreciated, thank you for your hard work. Answer posted by Support on Jan 31, 2008 06:11 >>it'll automatically change the value to "A TOP" basically it fill input as A. and "TOP" part must be selected, so the next pressed key will overwrite it - if it not selected in your case most probably you have selection disabled for part of page where combo placed. To resolve problem you can disable pre-selection by locating and commenting next chunk of code (lines 837-840) if (text!=data[1]){ this.setComboText(data[1]); dhtmlXRange(this.DOMelem_input,text.length+1,data[1].length); } |