Categories | Question details Back To List | ||
Combobox 2 Thank you for the reply. It works brilliantly. I am making a php interface for someone to search for database value, and input & edit data from the page. By the way, I would like to make the combo box both fully loaded and filtering. So when the page loaded I want to show data from a table, and when the user input data searches for the value. So I put both of lines on the page like this, the filtering mode works, but it doesn't display data when it's loaded. Do you have any suggestions? --------------------------------------------------------------------------------------------------------------------------------------- var z2=new dhtmlXCombo(\"softwareidcon\",\"softwareid\",300); z2.enableFilteringMode(true, \"autosuggestxmllist.php?op=softwarexml&mask=TEXT\", true, true); // z2.enableFilteringMode(true); z2.loadXML(\"autosuggestxmllist.php?op=softwarexml&mask=TEXT\", true, true); --------------------------------------------------------------------------------------------------------------------------------------- p.s. I'm sorry I posted a response directly to the thread I've asked the first question. This is a copy of my post there. Answer posted by Support on Jan 12, 2009 08:44 >>but it doesn't display data when it's loaded. When filtering mode enabled grid will not show any value for empty input dhtmlxcombo.js, line 960 dhtmlXCombo.prototype._fetchOptions=function(ind,text){ if (text=="") { this.closeAll(); return this.clearAll(); } You can try to modify it as dhtmlXCombo.prototype._fetchOptions=function(ind,text){ if (text=="") return; Answer posted by ni on Jan 12, 2009 08:55 Answer posted by ni on Jan 12, 2009 08:55 Thank you, it works fantastically! |