0

How to disable combobox dropdown ?

asked 2013-08-25 14:51:53 +0800

yohann gravatar image yohann
57

Hi,

Is it possible to disable the dropdown of a combobox ?

Many thanks,

delete flag offensive retag edit

Comments

I mean that the combobox will not show the drop-down list (only the selected item) but stay visible because some users must see the combobox but they can't modify it.

yohann ( 2013-08-26 09:58:19 +0800 )edit

4 Answers

Sort by ยป oldest newest most voted
1

answered 2013-08-26 05:44:15 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

What do you mean to disable combobox you men it will show the drop-down but is not clickable or you want to hide the Combobox

<checkbox label="check" onCheck="combo.visible = !combo.visible"/>
<combobox id="combo">
<comboitem label="Simple and Rich" />
<comboitem label="Cool!" />
<comboitem label="Thumbs Up!" />
link publish delete flag offensive edit
0

answered 2013-09-10 15:27:50 +0800

yohann gravatar image yohann
57

Hello,

I just want that the combobox cannot be dropdown and modified, is someone has an idea ?

Thanks,

link publish delete flag offensive edit
0

answered 2019-04-10 09:13:38 +0800

fairy gravatar image fairy flag of Indonesia
3

updated 2019-04-10 09:31:11 +0800

you can use autodrop="false" and disabled="true" in the combobox.

link publish delete flag offensive edit
-1

answered 2019-04-10 20:58:13 +0800

SarathVaddiNCS gravatar image SarathVaddiNCS
5

This will disable a value within the combo box (it will still show up, but it will not have the ability to be selected):

<select> <option value="volvo" disabled="">Volvo</option> <option value="saab">Saab</option> <option value="vw">VW</option> <option value="audi">Audi</option> </select>

This will disable the whole combo box:

<select disabled="disabled"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select>

link publish delete flag offensive edit

Comments

irrelevant for a zk combobox which doesn't use this dom element

cor3000 ( 2019-04-11 10:59:23 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-08-25 14:51:53 +0800

Seen: 63 times

Last updated: Apr 10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More