View Full Version : Panel in TabPanel, what's event while switching?

24 Dec 2010, 8:25 PM
Hi, Merry Xmas... I'm still working, hell

I put some panels into items of a TabPanel. Now, if the user press the button in the tabbar to switch to a panel, what event it fires?

I wanna load some data from server after the user press the button and go to this panel. Can I

1. bind a handler to each panel in the items array? like the button hanlder
2. use activate event? this event is fired while the panel is shown to user?

Thanks a ton!

26 Dec 2010, 7:58 AM
If you want to bind a listener to each Panel, you can use the activate/deactivate but that could be repetitive. You can listen on the *cardswitch events on the TabPanel.