-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
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?
2 | No.2 Revision |
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?