PDA

View Full Version : add beforeclose and close events to Ext.ContentPanel



ssapq
30 Mar 2007, 9:42 AM
Hi,

We're currently using Ext.TabPanel in our center content region instead of Ext.ContentPanel because of the lack lack of events for beforeclose and close. If the tab is dirty, we pop up a dialog to check if the user wants to close. We also tie some history management actions to the close event.

However, I'm concerned that going forward it's best to use Ext.ContentPanel with Ext.BorderLayout. For one, then we can easily have the tabs remain fixed on top, while the tab body can scroll underneath. As well, I would think we might miss out on some other nice functionality by not following standard practice with Ext.BorderLayout.

Thanks for all your work.

stekolla
30 Mar 2007, 10:28 AM
To get around this issue for now you could listen to the beforeclose event that the layout region fires.