[CLOSED] TabCloseMenu plugin firing close event

  1. #1

    [CLOSED] TabCloseMenu plugin firing close event

    Hi,

    After rolling my own 'Close Other Tabs' code, I noticed there was a plugin that did basically the same thing, the only problem I have is that it doesn't fire the 'close' event on the tabs that are closed by the plugin.

    Would it be possible to add this functionality to the plugin?
    Last edited by geoffrey.mcgill; Jul 28, 2010 at 10:04 PM.
  2. #2
    Hi,

    Close event is fired correctly for me
    Here is my test case
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
     
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            
            <ext:TabPanel runat="server" Height="300" Width="400">
                <Items>
                    <ext:Panel runat="server" Title="Tab 1" Closable="true">
                        <Listeners>
                            <Close Handler="alert(this.title + ' is closed');" />
                        </Listeners>
                    </ext:Panel>
                    
                    <ext:Panel runat="server" Title="Tab 12" Closable="true">
                        <Listeners>
                            <Close Handler="alert(this.title + ' is closed');" />
                        </Listeners>
                    </ext:Panel>
                    
                    <ext:Panel runat="server" Title="Tab 3" Closable="true">
                        <Listeners>
                            <Close Handler="alert(this.title + ' is closed');" />
                        </Listeners>
                    </ext:Panel>
                    
                    <ext:Panel runat="server" Title="Tab 4" Closable="true">
                        <Listeners>
                            <Close Handler="alert(this.title + ' is closed');" />
                        </Listeners>
                    </ext:Panel>
                    
                    <ext:Panel runat="server" Title="Tab 5" Closable="true">
                        <Listeners>
                            <Close Handler="alert(this.title + ' is closed');" />
                        </Listeners>
                    </ext:Panel>
                </Items>
                
                <Plugins>
                    <ext:TabCloseMenu runat="server" />
                </Plugins>
            </ext:TabPanel>
        </form>
    </body>
    </html>
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Had updated SVN, still didn't work so cleared out whole of local copy and got the latest files from scratch which then sorted it. Apologies!

Similar Threads

  1. [CLOSED] Window (X) close is not firing
    By rnachman in forum 1.x Premium Help
    Replies: 1
    Last Post: Oct 13, 2011, 5:10 PM
  2. [CLOSED] BeforeClientInit event not firing
    By jchau in forum 1.x Premium Help
    Replies: 6
    Last Post: Apr 04, 2011, 8:07 PM
  3. [CLOSED] Button event firing twice?
    By geodan in forum 1.x Premium Help
    Replies: 6
    Last Post: Aug 18, 2010, 8:03 PM
  4. [CLOSED] KeyDown Event Not Firing
    By JonG in forum 1.x Premium Help
    Replies: 11
    Last Post: Jun 04, 2010, 2:57 PM
  5. [CLOSED] setting value without firing event handler
    By maras54 in forum 1.x Premium Help
    Replies: 2
    Last Post: Jun 21, 2009, 7:34 PM

Posting Permissions