PDA

View Full Version : [CLOSED] Cannot cancel tab close in TabPanel



Fredrik
Mar 14, 2012, 9:21 AM
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>

Daniil
Mar 14, 2012, 11:27 AM
Hi,

Thanks for the report. We are investigating.

Vladimir
Mar 14, 2012, 12:32 PM
Hi,

Fixed in SVN, please update

Fredrik
Mar 14, 2012, 12:58 PM
Works. Thanx.