7 Feb 2011 10:52 PM #1
Dynamically Adding ContentPanel to tabitem
I want to dynamically load content into a TabItem when it is selected.
It is not working. I tried calling repaint() on the TabPanel and TabItem and it still doesn't work.
Any help is appreciated.
7 Feb 2011 11:29 PM #2
try calling layout();
7 Feb 2011 11:37 PM #3
Thanks for your time. I tried calling layout(), still doesn't work.
7 Feb 2011 11:43 PM #4
Do you have a working code that loads panel/text into a tabitem on Select event ?
8 Feb 2011 1:49 AM #5
Where did you call the layout()?
Maybe you can try to post a test case with your current code, so we can analyze better what you are doing (probably calling layout() in the wrong place).
8 Feb 2011 9:24 PM #6
it has been resolved
Yes, i was calling it on the wrong object.
I called the layout on the tabitem after adding the widget to it, it worked.
I learned learned from a different post, setting the setLayoutOnChange(true) on the tabitem will fix it too.
thanks again for your time.
By gishmo in forum Ext GWT: DiscussionReplies: 4Last Post: 14 Sep 2010, 1:47 PM
By francescoNemesi in forum Ext GWT: Help & Discussion (1.x)Replies: 0Last Post: 30 Sep 2008, 12:07 AM