PDA

View Full Version : MVC: How add a Close Listener to the TabPanel



marjot2112
Mar 30, 2016, 11:34 AM
I use ext.net mvc 4.0.0 RC.

How can I add a Listener to a TabPanel for a tab close event?

I would like to call the View Model or sent an information to the View Controller after a Tab is closed.

May someone has a soltion based on the Add_tab Example in Dynamic_Partial_Rendering:

http://mvc.ext.net/#/Dynamic_Partial_Rendering/Add_Tab/

fabricio.murta
Mar 30, 2016, 2:12 PM
Hello @marjot2112!

Use the TabClose event on the TabPanel itself.

Look at this WebForms example on how to use it: TabPanel: catch event before closing a tab (http://forums.ext.net/showthread.php?9093). Should be straightforward to take this to MVC.

I hope this helps!