MVC: How add a Close Listener to the TabPanel

  1. #1

    MVC: How add a Close Listener to the TabPanel

    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/
  2. #2
    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. Should be straightforward to take this to MVC.

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] MessageBox X-close button listener?
    By vadym.f in forum 1.x Premium Help
    Replies: 9
    Last Post: Aug 01, 2013, 8:32 AM
  2. How to close all tabs in TabPanel
    By ozayExt in forum 1.x Help
    Replies: 3
    Last Post: Apr 27, 2012, 11:48 AM
  3. how to close the tabpanel's tab?
    By zg_ivan in forum 1.x Help
    Replies: 2
    Last Post: Dec 13, 2010, 5:25 AM
  4. How to close tabpanel's tab in other window
    By fenya_616 in forum 1.x Help
    Replies: 1
    Last Post: Aug 05, 2010, 7:19 PM
  5. Can a Tab close itself from TabPanel?
    By ydnah2 in forum 1.x Help
    Replies: 2
    Last Post: Aug 10, 2009, 7:17 AM

Posting Permissions