1

"Recursive" databinding on a tree

asked 2008-06-09 22:12:31 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5018005

By: tommy_weber

Hi guys,

I have already made some researches regarding databinding on a tree but found nothin. My concrete question is, if it is possible to bind data on a tree if i know that an item could have items.

Let's say we have a structure which looks like this:

Id Parent Name
1 0 World
2 1 Europe
3 1 Asia
4 1 America
5 2 Italy
6 2 Hungary
7 3 Singapore
8 3 Malaysia
9 3 India
10 4 Mexico
11 4 Canada

how can I implement the structure above in a tree with databinding now that finally itll look like this:

+ World
..+ Europe
....+ Italy
....+ Hungary
..+ Asia
....+ Singapore
....+ Malaysia
....+ India
..+ America
....+ Mexico
....+ Canada

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2015-08-11 21:01:10 +0800

jasf90 gravatar image jasf90
1

please help me with a example about recursive tree

link publish delete flag offensive edit

answered 2008-06-11 08:15:29 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5022711

By: zanyking

Please follow this article:
http://www.zkoss.org/smalltalks/zkTreeModel/


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: 2008-06-09 22:12:31 +0800

Seen: 275 times

Last updated: May 27 '16

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