-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I use "frozen columns" in the listbox. On Zk6.5.4 OK. But I upgraded to ZK8.0.3 it encountered problems. When I scroll to the last and pulled back, the column disappeared.
<zk>
<listbox id="tiendoListBox" vflex="1" hflex="1">
<auxhead>
<auxheader label="Đơn vị" colspan="1" rowspan="2" />
<auxheader label="Chuyền" colspan="1" rowspan="2" />
<auxheader label="Đơn hàng" colspan="1" rowspan="2" />
<auxheader label="Mã hàng" colspan="1" rowspan="2" />
<auxheader label="PO" colspan="1" rowspan="2" />
<auxheader label="Màu" colspan="1" rowspan="2" />
<auxheader label="Sản Phẩm" colspan="1" rowspan="2" />
<auxheader label="Khách hàng" colspan="1" rowspan="2" />
<auxheader label="Số lượng SX" colspan="1" rowspan="2" />
<auxheader label="Nhập kho" colspan="3" />
<auxheader label="Ra chuyền" colspan="3" />
<auxheader label="Vào chuyền" colspan="3" />
<auxheader label="Cắt" colspan="3" />
<auxheader label="Thêu" colspan="3" />
<auxheader label="In" colspan="3" />
<auxheader label="Giặt" colspan="3" />
<auxheader label="Đóng gói" colspan="3" />
<auxheader label="CM" colspan="1" rowspan="2" />
<auxheader label="USD Month" colspan="1" rowspan="2" />
</auxhead>
<frozen columns="4" />
<listhead>
<listheader label="Số BC" width="60px" />
<listheader label="LK đã TH" width="80px" />
<listheader label="Còn lại" width="80px" />
<listheader label="Số BC" width="100px" />
<listheader label="LK đã TH" width="80px" />
<listheader label="Còn lại" width="100px" />
<listheader label="Số BC" width="60px" />
<listheader label="LK đã TH" width="80px" />
<listheader label="Còn lại" width="80px" align="right" />
<listheader label="Số BC" width="60px" align="right" />
<listheader label="LK đã TH" width="80px" align="right" />
<listheader label="Còn lại" width="70px" align="right" />
<listheader label="Số BC" width="60px" align="right" />
<listheader label="LK đã TH" width="80px" align="right" />
<listheader label="Còn lại" width="70px" align="right" />
<listheader label="Số BC" width="60px" align="right" />
<listheader label="LK đã TH" width="70px" align="right" />
<listheader label="Còn lại" width="70px" align="right" />
<listheader label="Số BC" width="60px" align="right" />
<listheader label="LK đã TH" width="70px" align="right" />
<listheader label="Còn lại" width="70px" align="right" />
<listheader label="Số BC" width="60px" align="right" />
<listheader label="LK đã TH" width="70px" align="right" />
<listheader label="Còn lại" width="70px" align="right" />
<listheader label="" width="70px" align="right" />
<listheader label="" width="70px" align="right" />
<listheader label="" width="70px" align="right" />
<listheader label="" width="70px" align="right" />
<listheader label="" width="70px" align="right" />
<listheader label="" width="70px" align="right" />
<listheader label="" width="70px" align="right" />
<listheader label="" width="70px" align="right" />
<listheader label="" width="70px" align="right" />
<listheader label="" width="70px" align="right" />
<listheader label="" width="90px" align="right" />
</listhead>
<auxhead>
<auxheader>
<textbox instant="true" hflex="1" />
</auxheader>
<auxheader>
<textbox instant="true" hflex="1" />
</auxheader>
<auxheader>
<textbox instant="true" hflex="1" />
</auxheader>
<auxheader>
<textbox instant="true" hflex="1" />
</auxheader>
<auxheader>
<textbox instant="true" hflex="1" />
</auxheader>
<auxheader>
<textbox instant="true" hflex="1" />
</auxheader>
<auxheader>
<textbox instant="true" hflex="1" />
</auxheader>
<auxheader>
<textbox instant="true" hflex="1" />
</auxheader>
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader label="" align="right" />
<auxheader />
<auxheader label="" align="right" />
<auxheader />
</auxhead>
<listitem>
<listcell label="AAAAAA" />
<listcell label="BBBBBBBBB" />
<listcell label="AAAAAAA" />
<listcell label="AAAAAAAAA" />
<listcell label="AAAAAAAAA" />
<listcell label="AAAAAAAAA" />
<listcell label="VVVVVVVVVVVVVV" />
<listcell label="AAAAAAAAAA" />
<listcell label="AAAAAAAAAA" />
<listcell label="AAAAAAAAAA" />
<listcell label="AAAAAAAAA" />
<listcell label="AAAAAAAAAAA" />
<listcell label="CCCCCCCCC" />
<listcell label="BBBBBBBBBBBBBB" />
<listcell label="AAAAAAAAAAAA" />
<listcell label="DDDDDDDDD" />
<listcell label="NNNNNNNNNNN" />
<listcell label="FFFFFFFFFFFFFF" />
<listcell label="AAAAAAAA" />
<listcell label="FFFFFF" />
<listcell label="NNNNNNNNNNNNNNNN" />
<listcell label="AAAAAAAAA" />
<listcell label="BBBBBBBBBB" />
<listcell label="AAAAAAAAAAAAAA" />
<listcell label="AAAAAAAAAAAAA" />
<listcell label="AAAAAAAA" />
<listcell label="AAAAAAAAAA" />
<listcell label="AAAAAAAAAAAAA" />
<listcell label="AAAAAAAAAAAAAAA" />
<listcell label="FFFFFFFFFFFFF" />
<listcell label="CCCCCCCCCC" />
<listcell label="AAAAAAAA" />
<listcell label="AAAAA" />
<listcell label="AAAAA" />
<listcell label="AAAAA" />
</listitem>
</listbox>
</zk>
when using frozen you can't mix listheader and auxheader via rowspan. Each column in the listbox needs a corresponding <listheader> component. In your case the number of listheaders doesn't match the listcells and frozen gets confused
So I wrote how to achieve the desired, I put a <auxheader/> final match but still not. 35 <listheader>, <auxheader>, <listcell>
Asked: 2017-01-05 05:14:14 +0800
Seen: 39 times
Last updated: Jan 07 '17