Jun 27, 2015, 2:39 PM
[CLOSED] strange badge behavior on button in tabpanel
Hello
Is this a bug or just a not correctly initialized badge on my part? The badge stays for the second tab... I would think that it vanishes like the rest of the buttons.
I found something about badges and tabpanels but I am not sure, if it is the same (link).
thanks for a nudge in the right direction.
best regards.
Is this a bug or just a not correctly initialized badge on my part? The badge stays for the second tab... I would think that it vanishes like the rest of the buttons.
I found something about badges and tabpanels but I am not sure, if it is the same (link).
thanks for a nudge in the right direction.
best regards.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<script runat="server">
public static string TEST_HTML_1 = @"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed egestas gravida nibh, quis porttitor felis
venenatis id.";
public static string TEST_HTML_2 = @"<b>This tab is scrollable.</b><br /><br />
Aenean sit";
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Plain TabPanel - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" />
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:Viewport runat="server" MarginSpec="0 0 10 0">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Center" Pack="Center" />
</LayoutConfig>
<Items>
<ext:TabPanel
runat="server"
Width="400"
Height="295"
MarginSpec="0 0 20 0">
<Defaults>
<ext:Parameter Name="bodyPadding" Value="10" Mode="Raw" />
<ext:Parameter Name="autoScroll" Value="true" Mode="Raw" />
</Defaults>
<Items>
<ext:Panel
runat="server"
Title="Active Tab"
Html="<%# TEST_HTML_1 %>"
ButtonAlign="Left"
AutoDataBind="true">
<Buttons>
<ext:Button runat="server" Text="Test">
<Plugins>
<ext:Badge runat="server" Text="99" UI="Info"></ext:Badge>
</Plugins>
</ext:Button>
</Buttons>
</ext:Panel>
<ext:Panel
runat="server"
Title="Inactive Tab"
Html="<%# TEST_HTML_2 %>"
ButtonAlignment="Left"
AutoDataBind="true" />
<ext:Panel runat="server" Title="Disabled Tab" Disabled="true" />
</Items>
</ext:TabPanel>
</Items>
</ext:Viewport>
</body>
</html>
Last edited by Dimitris; Jun 29, 2015 at 1:18 PM.
Reason: [CLOSED]