-
Bug
-
Resolution: Fixed
-
Normal
-
5.0.10
-
Security Level: Jimmy
-
None
1.Select first row and click the button,the count is 1
2.Select second row, hold down shift key , click the third row and click the button,
we will see the count is 3
<zk xmlns:w="client"> <window border="normal" title="hello"> <custom-attributes org.zkoss.zul.listbox.rod="true" /> <button onClick="label.value=String.valueOf(listbox.getSelectedCount())" id="btn" label="Click Me " /> <label id="label" /> <listbox id="listbox" multiple="true" rows="10" width="200px"> <listitem label="1" /> <listitem label="2" /> <listitem label="3" /> <listitem label="4" /> <listitem label="1" /> <listitem label="2" /> <listitem label="3" /> <listitem label="4" /> <listitem label="3" /> <listitem label="4" /> <listitem label="4" /> </listbox> </window> </zk>