PDA

View Full Version : text in a panel with click on a tree node in different panel.



bpc35c
24 Oct 2010, 4:58 PM
hi, i'm a newbie. could someone post a snippet of how to make text appear in the "east" window when a tree node in 'west" is clicked. i was using the getCmp('East').add({ }) and the text appears in the east window only when the window is resized. thanks.

Condor
25 Oct 2010, 12:09 AM
Call doLayout() after add().

bpc35c
25 Oct 2010, 3:09 PM
Thanks Condor, that worked.
However, multiple clicks just append with add and also with insert. Is there a way to refresh the panel 'east' before adding anything to it.