-
FEATURED COMPONENTS
First time here? Check out the FAQ!
But still allow select from the drop down menu? Thanks!
oh, i thought you meant to just not let edit, at all; not to be able to change (during run time) if you can edit it or not
try this
<combobox id="cb" readonly="true"> <comboitem label="test1"/> <comboitem label="test2"/> </combobox> <button label="readonly" onClick="cb.readonly=true"/> <button label="editable" onClick="cb.readonly=false"/>
edit: also, you might need to use "setReadonly" depending on how you implement it.
http://www.zkoss.org/javadoc/3.5.2/zul/org/zkoss/zul/Combobox.html
(Methods inherited from class org.zkoss.zul.impl.InputElement)
Asked: 2009-02-27 20:11:57 +0800
Seen: 425 times
Last updated: Feb 27 '09