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

browser tree model keeps old selection state after reloading tree model from server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • 5.0.8
    • 5.0.7.1
    • ZK Client Engine
    • Windows 7, Firefox 5

      I reload tree model on select event (in order to update tree item labels).

      <tree checkmark="true" multiple="true" model="@

      {win$composer.model,load-after='tree.onSelect'}

      "/>

      In my implementation, tree item open + select state is set via TreeitemRenderer (according to previous state).

      When I randomly select/deselect nodes by clicking on the checkboxes, tree items which I did not touch get also selected randomly!

      In the AU onSelect request I can see, that not only the actual selected item are sent, but also others, which mostly do not match existing components, but sometime they do!

      It quite looks, that browser model keeps old tree selection state even if tree model gets replaced completly.

      Please see also the attached example (simplified).

      Just select/unselect tree items via checkboxes and see, what's selected according to server tree model (shown in box below).

      After some time of clicking, browser and server tree selection gets out-of-sync! Take also a look on the AU onSelect requests!

        1. screenshot.jpg
          screenshot.jpg
          71 kB
        2. tree.java
          0.8 kB
        3. treetest.java
          3 kB
        4. treetest.zul
          0.7 kB
        5. TreeTestCtrl.java
          3 kB

            jumperchen jumperchen
            fse fse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: