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

Replace Model the display data is not up to date when Grid in ROD

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.9
    • 5.0.8
    • Components

      For example,

      <window>
      	1. Please scroll to the middle of the list, and then press the button "Refresh !".
      	<separator/>
      	2. You should see the list reset to the top of the list and display well(the first one should display "Option 0").
      	<button id="btnRefresh" label="Refresh !">
      		<attribute name="onClick">
      		 grid.setModel(new org.zkoss.zktest.test2.grid.FakeListModel(200));
      		</attribute>
      	</button>
      	<zscript>
      		ListModel strset = new org.zkoss.zktest.test2.grid.FakeListModel(2000);
      	</zscript>
      	<custom-attributes org.zkoss.zul.grid.rod="true"/>
      	<grid id="grid" width="200px" height="300px" model="&#36;{strset}">
      		<columns>
      			<column label="Load on Demend" sort="auto"/>
      		</columns>
      	</grid>
      </window>
      

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

              Created:
              Updated:
              Resolved: