0

Show Recursive structure with grid and rowrenderer

asked 2014-01-22 20:10:11 +0800

rex gravatar image rex
120 2

Hi all,

I have a recursive structure (parent, children) and I would like to show them in a tree like grid using detail in the RowRenderer. How can this be done such that you use the same zul file for detail objects? My databindings are mainly MVVM I have some old bindings in the app that have not been converted so any solution is good enough.

Any help would be greatly appreciated.

--Rex

delete flag offensive retag edit

4 Answers

Sort by ยป oldest newest most voted
0

answered 2014-01-23 15:35:30 +0800

dis gravatar image dis flag of Switzerland
140 4

Hi

I recommend you to use the Tree (http://www.zkoss.org/zkdemo/getting_started/tree?search=tree) and not the Grid component. A Tree is much better to display parent-child relations than a Grid.

Regards, Dieter

link publish delete flag offensive edit
0

answered 2014-01-27 19:13:23 +0800

rex gravatar image rex
120 2

Thanks for your reply. However, I need to use Grid as my UI requirements are much more complex than a simple tree. Each child has 5 or 6 attributes that needs to be illustrated in a tabular fashion.

Any other ideas?

link publish delete flag offensive edit

Comments

A Tree can have multiple treecell, use a treecell for each attribute.

dis ( 2014-02-03 10:02:30 +0800 )edit
0

answered 2014-01-27 22:33:48 +0800

cgraf gravatar image cgraf
22 3

Hi, is it something like master-detail?

See http://www.zkoss.org/zkdemo/grid/master_detail

Clayton

link publish delete flag offensive edit
0

answered 2014-02-03 10:02:52 +0800

dis gravatar image dis flag of Switzerland
140 4

A Tree can have multiple treecells, use a treecell for each attribute. Goto ZK Demo, search 'tree model' and you find an example of a tree with multiple treecells

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: 2014-01-22 20:10:11 +0800

Seen: 30 times

Last updated: Feb 03 '14

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