Nov 04, 2008, 2:54 PM
[FIXED] [V0.7] Visibility Bug
Hello,
The following example is related to the following (http://forums.ext.net/showthread.php...=3484-5-1.aspx), except now I'm hiding an ExtJS control by setting an ASP.NET PlaceHolder visibility:
Example.aspx:
1. Load page
2. Notice JS errors
Tested in FF3.0 and IE6
Cheers,
Timothy
The following example is related to the following (http://forums.ext.net/showthread.php...=3484-5-1.aspx), except now I'm hiding an ExtJS control by setting an ASP.NET PlaceHolder visibility:
Example.aspx:
<%@ Page Language="C#" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
ComboBox1.SetValue("Word");
}
</script>
<!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>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" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:PlaceHolder ID="phAccountType" runat="server" Visible="False">
<ext:ComboBox ID="ComboBox1"
runat="server"
Editable="True"
EmptyText="----"
ForceSelection="True"
Mode="Local"
Selectonfocus="True"
TriggerAction="All"
TypeAhead="True"
ValueNotFoundText="----"
Width="255">
<Items>
<ext:ListItem Text="Word" Value="Word" />
<ext:ListItem Text="Word 1" Value="Word 1" />
</Items>
</ext:ComboBox>
</asp:PlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>
Replication steps:1. Load page
2. Notice JS errors
Tested in FF3.0 and IE6
Cheers,
Timothy