PDA

View Full Version : The afterlayout of the container



wguo
28 Apr 2010, 1:51 AM
Now I have a requirement which need register a listener which can fire a event when all the components of the container had been rendered. For example , when I have container which contains ten components, when the container shows, but due to the init of all the components, the page temporarily be white , so I want to mask the container during the time when the component were inited. I have tried the event 'afterlayout' but it does't work.
Does anyone have opinions?

Animal
28 Apr 2010, 2:40 AM
Use the afterlayout event.

"doesn't work", as has been pointed out on these forums dozens of times, means absolutely nothing.

wguo
28 Apr 2010, 2:48 AM
Sorry , I had a wrong statement, it works , but on the time of the event fired, the components were not showed , the page is white.About on three seconds , the page was showed. It is .