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

Update the data of the listbox with a timer and IE8 will cause javascript error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.11
    • 5.0.10
    • Components
    • None

      <zk>
      	<zscript><![CDATA[
      ListitemRenderer renderer = new ListitemRenderer(){
      
      	public void render(Listitem item, Object data) throws Exception {
      		item.appendChild(new Listcell("item"));
      		item.appendChild(new Listcell("item"));
      		item.appendChild(new Listcell("item"));
      		
      	}
      	
      };
      	]]></zscript>
      	<listbox height="500px" width="300px" id="lb" itemRenderer="${renderer}">
      	<custom-attributes org.zkoss.zul.listbox.rod="false"/>
      		<listhead>
      			<listheader label="col" forEach="1,1,1"/>
      		</listhead>
      	</listbox>
      	<timer repeats="true" running="true" delay="3000">
      		<attribute name="onTimer"><![CDATA[
      			List list = new ArrayList();
      			
      			for (int i = 0; i < 1000; i++)
      				list.add("item");
      			lb.setModel(new ListModelList(list));
      		]]></attribute>
      	</timer>
      </zk>
      

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

              Created:
              Updated:
              Resolved: