Categories | Question details Back To List | ||
dhtmlxCombo Hi. I have two questions: first: I want to implement this functionality: I have a combo with checkboxes. Now, if I click any option, the combo will show in it this option's text and checkbox. But I want it to show my custom text (e.g. "Multiple select mode"), no matter, what option had been choosed. second: With filtering enabled, I want my combo to show the full options list if nothing is typed in it and I click on the combo's button. Now it doesn't show anything. Thank you. Answer posted by Support on Apr 11, 2008 03:16 >> I want it to show my custom text (e.g. "Multiple select mode"), no matter, what option had been choosed.
Try to use "onChange" event handler and setComboText(str) method (please, see details in the combo documentation): combo.attachEvent("onChange",function(){ combo.setComboText("Multiple select mode"); combo.DOMelem_checkbox = ""; }) There the DOMelem_checkbox is an internal property. You can use it to disable checkbox showing with the combo text. >> With filtering enabled, I want my combo to show the full options list if nothing is typed in it and I click on the combo's button. The problem was not reconstructed locally. If the combo input is empty, combo in filtering mode (not autocomplete) always shows a full options list. Please, see sample here http://www.dhtmlx.com/docs/products/dhtmlxCombo/samples/filtering/combo_filter.html If problem persists, please, provide sample to support@dhtmlx.com |