Apr 26, 2010, 10:58 PM
[CLOSED] [0.8.2] Render problem after displaying a hidden combobox
Hi:
It's a problem of Coolite 0.8.2. We put a combobox into a hidden panel and display it while clicking a button. but the combobox doesn't render correctly.
That's the example code, please have a look:
and the screen shot of error render is also attached.
Please advise how to workaround the problem, thanks a lot.
Charlie
Development team of Webezi Software
It's a problem of Coolite 0.8.2. We put a combobox into a hidden panel and display it while clicking a button. but the combobox doesn't render correctly.
That's the example code, please have a look:
<%@ Page Language="C#" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Assembly="Coolite.Ext.UX" Namespace="Coolite.Ext.UX" TagPrefix="ux" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnDisplay_Click(object sender, AjaxEventArgs e)
{
panl.Show();
}
protected void btnHide_Click(object sender, AjaxEventArgs e)
{
panl.Hide();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title> </title>
</head>
<body>
<form id="form1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server" />
<table width="100%">
<tr>
<td>
<ext:Button runat="server" ID="btnDisplay" Text="Display">
<AjaxEvents>
<Click OnEvent="btnDisplay_Click">
</Click>
</AjaxEvents>
</ext:Button>
</td>
</tr>
<tr>
<td colspan="2">
<ext:Panel runat="server" ID="panl" Hidden="true" BodyBorder="false" AutoRender="true">
<Body>
<ext:ComboBox runat="server" ID="cbxModel" TypeAhead="true" Mode="Local"
ForceSelection="true" TriggerAction="All" AutoRender="true" AllowDomMove="false" >
<Items>
<ext:ListItem Text="test" Value="2" />
<ext:ListItem Text="test1" Value="3" />
<ext:ListItem Text="test3" Value="5" />
</Items>
</ext:ComboBox>
</Body>
</ext:Panel>
</td>
</tr>
</table>
</form>
</body>
</html>
and the screen shot of error render is also attached.
Please advise how to workaround the problem, thanks a lot.
Charlie
Development team of Webezi Software