0

some Advice about Group of Grid

asked 2009-05-11 03:21:32 +0800

evpole gravatar image evpole
481 2

updated 2009-05-11 03:25:13 +0800

while using databinding in group grid, there's a problem.
group is a child component of rows,brother of row:

<grid>
<rows>
<group/>
<row/>
<row/>
</rows>
</grid>

but in the data structure, usaually we hold group_date as the parent of row, the child of rows.
without databinding ,we can create group component dynamiclly, but while using databinding,there's a problem.

here's an example:
this is what i want, but it's wrong for current zkbin,because i recognize group component as the parent of row.





<grid model="@{controller.country}">
<rows self="@{each='provence'}">
<group self="@{each='provence.city'" label="@{provence.name}">
<row><label value="@{city.name}"/><label value="@{city.people_number}"/><label value="@{city.car_number}"/>
</row>
</group>
</rows>
</grid>


here is what i want to say, the group component should be the parent of row.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-05-19 07:09:58 +0800

PeterKuo gravatar image PeterKuo
481 2

please post to feature request.
But for backward compatible, something can't be easily change,
although it seems really reasonable.

link publish delete flag offensive edit

answered 2009-05-27 03:21:22 +0800

evpole gravatar image evpole
481 2

That's right.
thank you.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2009-05-11 03:21:32 +0800

Seen: 263 times

Last updated: May 27 '09

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