0

rerendering the

asked 2011-12-06 10:17:35 +0800

avidD gravatar image avidD
166 2

Dear colleagues,
I have a tree that displays various columns. Now I added a dialog that allows to configure the set of columns and their order. I would now like to update the tree view. Can anyone tell me what would be the best way to achieve this?

The renderer knows the list of columns to be displayed. I only need to know how I can efficiently trigger rerendering the contents of the tree, of course without collapsing nodes.

Greetings and thanks beforehand,
David

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-12-06 10:34:00 +0800

avidD gravatar image avidD
166 2

Ah I see, I now just reset the model. Hope that is the most efficient way.

link publish delete flag offensive edit

answered 2011-12-07 01:11:22 +0800

paowang gravatar image paowang
140 6

According to the javadoc: http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/Tree.html#setModel(org.zkoss.zul.TreeModel)
Reset the model is a efficient way.

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: 2011-12-06 10:17:35 +0800

Seen: 117 times

Last updated: Dec 07 '11

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