0

I use frozen columns in the listbox

asked 2017-01-05 05:14:14 +0800

longdv1208 gravatar image longdv1208
98 4

updated 2017-01-06 04:37:48 +0800

cor3000 gravatar image cor3000
6280 2 7

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>
delete flag offensive retag edit

2 Answers

Sort by » oldest newest most voted
0

answered 2017-01-06 04:59:37 +0800

cor3000 gravatar image cor3000
6280 2 7

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

link publish delete flag offensive edit

Comments

But I use the OK Zk6.5.4

longdv1208 ( 2017-01-07 08:44:54 +0800 )edit

it seems, things have changed, now you need a matching number of <listheader> elements

cor3000 ( 2017-01-09 01:33:15 +0800 )edit
0

answered 2017-01-07 09:00:52 +0800

longdv1208 gravatar image longdv1208
98 4

updated 2017-01-07 09:02:59 +0800

So I wrote how to achieve the desired, I put a <auxheader/> final match but still not. 35 <listheader>, <auxheader>, <listcell>

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2017-01-05 05:14:14 +0800

Seen: 39 times

Last updated: Jan 07 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More