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

Listbox can render changed items only when ROD is enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.2
    • 8.0.1
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.0.2 S2
    • None

      Currently, when ROD is enabled, a Listbox still re-renders all currently-rendered item again even we don't change it. There are several cases:

      1. users call model.add(). Although the added item is not rendered before, the Listbox still re-renders all.
      2. Users call model.set(0, object). Although only one item changes, the Listbox still re-renders all.
        Re-rendering all items causes a Listbox flicker itself.

      When there is server push thread which keeps updating the model, the Listbox keeps flickering itself which is an annoying problem. When ROD is disabled, there is no such issue.

      steps to reproduce

      1. load the zul
      2. click the button for several times

      actually result

      each clicking causes the listbox flickering itself for re-rendering all items.

      expected result

      no flickering happens.

      debug info

      • when ROD is disabled, no flickering happens.

            christopherszu christopherszu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h