0

Grid: Only one foot child is allowed

asked 2013-04-10 12:10:51 +0800

cocoes gravatar image cocoes flag of Spain
94 6

Hi,

is it possible to have two rows' footer in a grid like you can have in the header?

For example this works for header:

        <auxhead sclass="category-center">
            <auxheader label="Healthy Food List" colspan="6" rowspan="1" />
        </auxhead>
        <auxhead sclass="category-center">
            <auxheader label="Category Select" colspan="1" rowspan="1" />
            <auxheader colspan="5" rowspan="1">
                <radiogroup id="categorySelector">
                    <hlayout width="100%">
                        <radio label="All Food" checked="true" width="90px" />
                        <radio label="Vegetables" width="90px" />
                        <radio label="Seafood" width="90px" />
                        <radio label="Fruits" width="90px" />
                        <radio label="Poultry &amp; Lean Meats" width="200px" />
                    </hlayout>
                </radiogroup>
            </auxheader>
        </auxhead>

When I try to put two

<foot><footer span="5"/></foot> 
<foot><footer span="5"/></foot>

in the zul file, I get the following error:

org.zkoss.zk.ui.UiException: Only one foot child is allowed: <Grid t_2>

Is there any other way of having two rows in the footer or two footers?

Regards.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-04-11 09:53:24 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

No, but you can try "stack up" two grids,

e.g.,

<zk>
    <grid width="300px" style="border-bottom: 0px;">
        <columns>
            <column label="Type" width="50px"/>
            <column label="Content"/>
            <column label="third column" />
        </columns>
        <rows>
            <row>
                <label value="File:"/>
                <textbox width="100px"/>
                <label value="test" />
            </row>
        </rows>
        <foot>
            <footer span="2" align="center">footer 1</footer>
        </foot>
    </grid>
    <grid width="300px" style="border-top: 0px;">
        <columns visible="false">
            <column label="Type" width="50px"/>
            <column label="Content"/>
            <column label="third column" />
        </columns>
        <foot>
            <footer align="center" span="2">footer 2</footer>
        </foot>
    </grid>
</zk>
link publish delete flag offensive edit

Comments

Many thanks, I'll try it.

cocoes ( 2013-04-11 10:13:58 +0800 )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
2 followers

RSS

Stats

Asked: 2013-04-10 12:10:51 +0800

Seen: 95 times

Last updated: Apr 11 '13

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