The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

DrkCoater (6) [Avatar] Offline
#1
There is a an onRender and afterRender in component class, when I should use onRender and when should I use afterRender? What are the differences?
jesus.garcia (463) [Avatar] Offline
#2
Re: component onrender afterrender
The rule of thumb is:
- onRender you use when you need to do something after that component has rendered
- afterRender is used when that component and it's children are rendered.

Does this help?
DrkCoater (6) [Avatar] Offline
#3
Re: component onrender afterrender
This is really helpful.
DrkCoater (6) [Avatar] Offline
#4
Re: component onrender afterrender
A follow up on this question. What if I have a lazy render component, like tab panel, when afterrender will be called, after all children components are finished rendering or just after the active component is rendered?
jesus.garcia (463) [Avatar] Offline
#5
Re: component onrender afterrender
I think it's after initial pass of the rendering.