Revision history [back]

click to hide/show revision 1
initial version

asked 2013-10-17 10:24:11 +0800

Weasley gravatar image Weasley

Grid with merged headers

I have a grid with merged headers

<grid id="carparking2SellCarGrid" hflex="min" sizedByContent="true" 
                        mold="paging" pageSize="10" model="${logSellCarListModel}" >
                        <auxhead hflex="min" >
                            <auxheader hflex="min" align="center" colspan="1"/>
                            <auxheader hflex="min" align="center" colspan="2" forEach="${selectedSellCars}" tooltiptext="${each.car_name}" >
                                <label hflex="1" value="${each.car_name}"></label>
                            </auxheader>
                        </auxhead>
                        <columns hflex="min">
                            <column align="center" hflex="min">Date</column>
                            <zk forEach="${selectedSellCars}" >
                                <column align="center" hflex="min">Action</column>
                                <column align="center" hflex="min">User</column>
                            </zk>
                        </columns>
                        <template name="model">
                            <row>
                                <cell>
                                    <label style="overflow: auto;" value="${each.report_time}"/>
                                </cell>
                                <zk forEach="${each.displayed_number}">
                                    <cell><label value="${each}"></label></cell>
                                </zk>
                            </row>
                        </template>

The result is http://farm3.staticflickr.com/2857/10325358863_1e057ed181.jpg

The headers aren't fully displayed, i tried to change the hflex to "1", but not worked. Can anyone give me a grid example with very long merged headers, please?

Grid with merged headers

I have a grid with merged headers

<grid id="carparking2SellCarGrid" hflex="min" sizedByContent="true" 
                        mold="paging" pageSize="10" model="${logSellCarListModel}" >
                        <auxhead hflex="min" >
                            <auxheader hflex="min" align="center" colspan="1"/>
                            <auxheader hflex="min" align="center" colspan="2" forEach="${selectedSellCars}" tooltiptext="${each.car_name}" >
                                <label hflex="1" value="${each.car_name}"></label>
                            </auxheader>
                        </auxhead>
                        <columns hflex="min">
                            <column align="center" hflex="min">Date</column>
                            <zk forEach="${selectedSellCars}" >
                                <column align="center" hflex="min">Action</column>
                                <column align="center" hflex="min">User</column>
                            </zk>
                        </columns>
                        <template name="model">
                            <row>
                                <cell>
                                    <label style="overflow: auto;" value="${each.report_time}"/>
                                </cell>
                                <zk forEach="${each.displayed_number}">
                                    <cell><label value="${each}"></label></cell>
                                </zk>
                            </row>
                        </template>

The result is http://farm3.staticflickr.com/2857/10325358863_1e057ed181.jpg Here


The headers aren't fully displayed, i tried to change the hflex to "1", but not worked. Can anyone give me a grid example with very long merged headers, please?

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