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

Listbox always re-creates all Listitems when adding an entry in a ListModel with ROD is enabled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.2
    • Fix Version/s: 8.0.3
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.0.3 S5, ZK 8.0.3 S6, ZK 8.0.3 S7, ZK 8.0.3 S9

      Description

      steps to reproduce

      1. load the attached file
      2. click the "add" button 4 times

      result

      watch the console output, it always re-creates all visible Listitem again for each adding.

      {"rs":[["setAttr",[{$u:'w3wP1'},"itemsInvalid_",[[
      ['zul.sel.Listitem','w3wPdf',{_loaded:true,_index:0},{},[
      ['zul.sel.Listcell','w3wP2i',

      Unknown macro: {label}

      ,{},[]]]]],[
      ...
      ['zul.sel.Listitem','w3wPzh',{_loaded:true,_index:48},{},[
      ['zul.sel.Listcell','w3wPdj',

      Unknown macro: {label}

      ,{},[]]]]],[
      ['zul.sel.Listitem','w3wP0i',{_loaded:true,_index:49},{},[
      ['zul.sel.Listcell','w3wPej',

      Unknown macro: {label}

      ,{},[]]]]]]]],["setAttr",[{$u:'w3wP1'},"_offset",0]],["setAttr",[{$u:'w3wP1'},"totalSize",302]]],"rid":2}

      expected

      only create one item for newly added entry

      debug info

      • this issue doesn't happen when ROD is disabled.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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