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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.3
    • 8.0.2
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.0.3 S5, ZK 8.0.3 S6, ZK 8.0.3 S7, ZK 8.0.3 S9

      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.

            christopherszu christopherszu
            hawk hawk
            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 - 3 hours, 5 minutes
                3h 5m