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

Dynamically add fronzen in Grid and invalidate the Grid will cause JS error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.8
    • 5.0.8, Freshly
    • Components
    • None

      For example, please click "add Frozen" and then click "invalidate" will cause JS error.
      <zk>
      <separator/>
      1.click "add frozen"
      <separator/>
      2.scroll right to column 5
      <separator/>
      3.click "delete frozen"
      <separator/>
      4.see if column 1 to column5 can be see by scroll left and right
      <separator/>
      <button label="add Frozen ">
      <attribute name="onClick"><![CDATA[
      Frozen fz = new Frozen();
      fz.setColumns(1);
      grid.appendChild(fz);
      ]]></attribute>
      </button>
      <button label="delete Frozen ">
      <attribute name="onClick"><![CDATA[
      grid.getFrozen().detach();
      ]]></attribute>
      </button> <button label="invalidate" onClick="grid.invalidate();"/>
      <grid id="grid" width="250px">
      <columns>
      <column label="column ${each}" forEach="1,2,3,4,5"
      width="100px" />
      </columns>
      <rows>
      <row forEach="1,2,3,4,5">
      <label value="item ${each}" forEach="1,2,3,4,5" />
      </row>
      </rows>
      </grid>
      </zk>

            jimmyshiau jimmyshiau
            jumperchen jumperchen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: