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

Listbox getSelectedItems + shift does not work in version 5.0.10 without ROD

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.10
    • Fix Version/s: 5.0.11
    • Component/s: Components
    • Labels:

      Description

      I am having issue with Listbox selecting rows after upgrading zk to 5.0.10.
      When I select multiple items in Listbox by holding the shift key getSelectedItems() method return 0 rows.
      It's returning selected rows if I use ctrl + click. In version 5.0.5 it's working as expected.
      Use case.
      1. Selecting row one.
      2. Scrolling down to row 30.
      3. Holding shift + click on row 30
      4. All rows is selected
      5. getSelectedItems().size() return 0
      Here is sample of my code which working fine in 5.0.5

      public void onSelect$lbProductGroup(ForwardEvent event)throws Exception{
      Listbox listbox = (Listbox) event.getOrigin().getTarget();
      Set<Listitem> listitems = (Set<Listitem>)listbox.getSelectedItems();
      System.out.println("list size = " + listitems.size());
      for (Listitem listitem : listitems) {
      System.out.println("value = " + listitem.getValue().toString());
      System.out.println("description = " + listitem.getLabel());
      }
      }

        Attachments

          Activity

            People

            • Assignee:
              jumperchen jumperchen
              Reporter:
              xrehbam xrehbam
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: