Redrawing/refreshing a control

asked 2006-03-22 16:55:49 +0800

admin gravatar image admin
18691 1 10 129
ZK Team

Orignial message at:

By: nobody

How do you cause a control to redraw itself.
ie, I have a grid and I want to make it redraw. Is this the invalidate() method?

The reason is that I noticed when I drag and drop a grid, the grid which was dynamically created, will become scrollable once I drop the window. When the grid was created dynamically, the grid height did not cause the scrollbar to be created thus creating large grids which took up the real estate on my page.

Therfore, I figure if I can force the grid to redraw itself once it has been created, then I should get my scrollbar.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2006-03-22 17:48:52 +0800

admin gravatar image admin
18691 1 10 129
ZK Team

Orignial message at:

By: nobody

I see a redraw() method for the component. I am confused as to what Writer to pass it?

Grid grid = new Grid();
grid.redraw(Write arg0)

link publish delete flag offensive edit

answered 2006-03-23 01:09:45 +0800

admin gravatar image admin
18691 1 10 129
ZK Team

Orignial message at:

By: tomyeh

Calling invalidate() will cause a component to redraw itself. It is valid for app developes to call, but it is rarely necesssary. The component shall handle that for you.

In your case, it could be a bug. Would you post your ZUML codes illustrates the problem?

BTW, redraw() is called by ZK loader. Component developers shall provide an implementation for it but NEVER call it.

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




Asked: 2006-03-22 16:55:49 +0800

Seen: 1,609 times

Last updated: Mar 23 '06

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