0

Show checkmark when listbox is disabled

asked 2011-11-16 15:15:56 +0800

MonoMamerto gravatar image MonoMamerto
47 1

Hi, i would like to know if is it possible to show a checkmark's value when a listbox it's disabled. I have this code:

<listbox id="listboxAR" vflex="true" width="100%"
model="@{window.listModelR}" height="100%" multiple="true"
checkmark="true" mold="paging" pageSize="15"
pagingPosition="top"
selectedItem="@{window.entity.rols, converter=common.util.SelectedItemsConverterV3 }">

..........
</listbox>

The problem is, that if listboxAR is disabled, the checkmark's mark is not shown, even if it's has a mark. Once i enable listboxAR, the checkmarks appear.

Thanks, Mono.

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2011-11-17 09:54:32 +0800

matthewgo gravatar image matthewgo
375

updated 2011-11-17 09:54:49 +0800

Hi Mono,

I can't reproduce this issue , can you provide more info or a simple reproduced sample?

link publish delete flag offensive edit

answered 2011-11-17 13:24:37 +0800

MonoMamerto gravatar image MonoMamerto
47 1

updated 2011-11-17 13:51:25 +0800

Of course, here it is an example:
<?page title="Test" contentType="text/html;charset=UTF-8"?>
<zk>
<window title="Test" border="normal">
<listbox id="listbox" vflex="true" width="100%"
height="100%" multiple="true"
checkmark="true" mold="paging" pageSize="15" pagingPosition="top">

<listhead sizable="true">
<listheader id="lhName" label="name" ></listheader>
<listheader id="lhDescription" label="description" ></listheader>
</listhead>

<!-- This listitem it's selected but disabled and it wont be shown as marked -->
<listitem selected="true" disabled="true">
<listcell label="1" ></listcell>
<listcell label="qwerty" ></listcell>
</listitem>
<!-- This listitem it's selected but enabled and it will be shown as marked -->
<listitem disabled="false" selected="true" >
<listcell label="2" ></listcell>
<listcell label="qwertydqwdasczsc" ></listcell>
</listitem>
<!-- This listitem it's selected but disabled and it wont be shown as marked -->
<listitem selected = "true" disabled="true" >
<listcell label="3" ></listcell>
<listcell label="dqsadzdsdvsdv" ></listcell>
</listitem>

</listbox>
</window>
</zk>

I need to show which listitems are selected even if they are disabled...


ZK Version: 5.0.5

Thanks, Mono.

link publish delete flag offensive edit

answered 2011-11-17 14:57:42 +0800

MonoMamerto gravatar image MonoMamerto
47 1

Found this http://tracker.zkoss.org/browse/ZK-205 I gonna try with >=5.0.8 .

link publish delete flag offensive edit

answered 2011-11-17 17:31:23 +0800

MonoMamerto gravatar image MonoMamerto
47 1

I tried ZK v5.0.9 and it shows marks perfectly even when the listitems are disabled!. Thanks!

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2011-11-16 15:15:56 +0800

Seen: 290 times

Last updated: Nov 17 '11

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