-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
Hi Mono,
I can't reproduce this issue , can you provide more info or a simple reproduced sample?
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.
Found this http://tracker.zkoss.org/browse/ZK-205 I gonna try with >=5.0.8 .
I tried ZK v5.0.9 and it shows marks perfectly even when the listitems are disabled!. Thanks!
Asked: 2011-11-16 15:15:56 +0800
Seen: 290 times
Last updated: Nov 17 '11