Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-925

Select mutiple Item using shift key will return wrong count in listbox (ROD enabled)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.11, 6.0.1
    • 5.0.10
    • Components
    • Security Level: Jimmy

      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>

            TonyQ TonyQ
            matthewgo matthewgo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: