-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3644830
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.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3645732
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.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3644972
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)
Asked: 2006-03-22 16:55:49 +0800
Seen: 1,613 times
Last updated: Mar 23 '06