[CLOSED] Cannot cancel tab close in TabPanel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Cannot cancel tab close in TabPanel

    I try to abort the close event in a TabPanel by returning false in the BeforeClose listener.

    Although the content in the childtab is not removed, the tab in top of the TabPanel is.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TabClose.aspx.cs" Inherits="WebApplication1.TabClose" %>
    <%@ 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 runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:Viewport ID="Viewport1" runat="server" Layout="FitLayout">
            <Items>
                <ext:TabPanel runat="server" ID="TabPanel1" Region="Center" Title="TabPanel">
                    <Items>
                        <ext:Panel ID="Panel1" runat="server" Title="Panel" Closable="true">
                            <Items>
                                <ext:Label runat="server" ID="Label1" Text="Content of Tab" />
                            </Items>
                            <Listeners>
                                <BeforeClose Handler="return false" />
                            </Listeners>
                        </ext:Panel>
                    </Items>
                </ext:TabPanel>
            </Items>
        </ext:Viewport>
        </form>
    </body>
    </html>
    Last edited by Daniil; Mar 14, 2012 at 1:09 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Thanks for the report. We are investigating.
  3. #3
    Hi,

    Fixed in SVN, please update
  4. #4
    Works. Thanx.

Similar Threads

  1. How to close tab on dblclick in tabpanel?
    By nanlinfeixue in forum 1.x Help
    Replies: 3
    Last Post: Jan 23, 2013, 4:01 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