PDA

View Full Version : how to load the component when user touch TabPanel?



trandroid
7 Jul 2010, 2:31 AM
Hi,

I used a TabPanel on my project. like below;
var panel = new Ext.TabPanel({
fullscreen: true,
animation: 'pop',
items: [aa,bb,cc,dd,ee]
});

aa, bb ,cc,dd,ee are components. I need to load component data when the user click(touch) to them.

TommyMaintz
7 Jul 2010, 9:20 AM
You can listen for the activate event on each component, at which time you make an ajax request to load the data, and use .update to update the content of the component.