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

TreeNode.setData() causes incorrect re-positioning of treeitems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 6.5.8, 7.0.6
    • 6.5.7, 7.0.5.2
    • Components
    • Security Level: Jean
    • ZK 7.0.7

      the attached example shows 2 different ways updated nodes in a tree
      when only updating the node data TreeNode.setData(), the nodes on level 3 are relocated to the end of the tree
      http://screencast.com/t/u4JRrYeWYfK

      Workaround:
      replacing the TreeNodes in the model fixes the problem at the cost of efficiency

        1. DynTreeController.java
          3 kB
        2. dynamic-tree.zul
          0.2 kB
        3. DynTreeController.java
          4 kB
        4. dynamic-tree.zul
          0.4 kB

            jumperchen jumperchen
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours
                7h