Oct 30, 2008, 1:46 PM
[FIXED] [V0.7] Button Disabled
Hello,
The following example used to work, for some reason over the past couple revisions it has stopped working. I'm not sure if this is by design, or it was working because it was originally a bug. Please advise.
Example.aspx:
1. Load page
2. Notice Button1 is disabled
3. Select "Example" from ComboBox1
4. Notice Button2 is enabled
5. Click Tab2
6. Click Tab1
7. Notice Button1 is disabled again?
As mentioned earlier, Button1 used to be enabled in step #7. Any suggestions would be much appreciated.
Hope this makes sense.
Cheers,
Timothy
The following example used to work, for some reason over the past couple revisions it has stopped working. I'm not sure if this is by design, or it was working because it was originally a bug. Please advise.
Example.aspx:
<%@ Page Language="C#" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" 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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" />
<ext:ScriptManager ID="ScriptManager2" runat="server" StateProvider="PostBack" />
<ext:TabPanel ID="TabPanel1" runat="server" AutoPostBack="True" AutoHeight="True" DeferredRender="True">
<Tabs>
<ext:Tab ID="Tab1" runat="server" Title="Tab 1">
<Body>
<ext:ComboBox ID="ComboBox1"
runat="server">
<Listeners>
<Select Handler="#{Button1}.enable();" />
</Listeners>
<Items>
<ext:ListItem Text="Example" Value="Example" />
</Items>
</ext:ComboBox>
<ext:Button ID="Button1" runat="server" Text="Button 1" Disabled="True" />
</Body>
</ext:Tab>
<ext:Tab ID="Tab2" runat="server" Title="Tab 2">
<Body>
Tab 2 Content
</Body>
</ext:Tab>
</Tabs>
</ext:TabPanel>
</form>
</body>
</html>
Replication steps:1. Load page
2. Notice Button1 is disabled
3. Select "Example" from ComboBox1
4. Notice Button2 is enabled
5. Click Tab2
6. Click Tab1
7. Notice Button1 is disabled again?
As mentioned earlier, Button1 used to be enabled in step #7. Any suggestions would be much appreciated.
Hope this makes sense.
Cheers,
Timothy