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

Listbox can render changed items only when ROD is enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.1
    • Fix Version/s: 8.0.2
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.0.2 S2

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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