PDA

View Full Version : [FIXED] [V0.7] DeferredRender and ComboBox Bug



Timothy
Nov 03, 2008, 4:34 PM
Hello,

The following example fails after revision 688 from SVN:

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 runat="server" UpdateMode="Conditional">
<ContentTemplate>
<ext:TabPanel ID="TabPanel2" runat="server" ActiveTabIndex="0" AutoPostBack="True" AutoWidth="True" DeferredRender="True">
<Tabs>
<ext:Tab ID="Tab21" runat="server" AutoHeight="True" Title="Tab 2.1">
<Body>
Blah
</Body>
</ext:Tab>
<ext:Tab ID="Tab22" runat="server" AutoHeight="True" Title="Tab 2.2">
<Body>
<ext:ComboBox ID="ComboBox1"
runat="server"
Editable="True"
EmptyText="----"
ForceSelection="True"
Mode="Local"
Select&#111;nfocus="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>
</Body>
</ext:Tab>
</Tabs>
</ext:TabPanel>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>


Replication steps:

1. Load page, notice JS error

Cheers,
Timothy

Timothy
Nov 03, 2008, 4:35 PM
The following is being rendered in



Coolite.Ext.setValues([[ComboBox1,"Word"]]);


Cheers,
Timothy

geoffrey.mcgill
Nov 04, 2008, 8:52 AM
Hi Timothy,

Using the latest SVN code, your code sample above (straight copy/paste) appears to work properly and no js errors are thrown. 


Give it another shot and let me know if you're still getting the same error. 

Timothy
Nov 04, 2008, 8:56 AM
Geoffrey, my last check out was yesterday afternoon (EST), I can't remember the revision number off hand, so I will do just that and get back to you when I'm in the office.

Cheers,
Timothy

Timothy
Nov 04, 2008, 10:34 AM
Confirmed resolved.

Cheers,
Timothy