Nov 24, 2010, 5:35 PM
[CLOSED] Bug on change direct event of a textfield when there is a dropdownfield with a treepanel
Hi, i've noticed the following bug: I have a screen in which there is a textfield and a lot of other controls, including a dropdownfield with a treepanel. In the change direct event of this textfield i load some content in the other controls. This screen worked perfectly in version 1.0.3909.21027. We then updated to version 1.0.3960.22203 a few time ago, and today i noticed that this screen is not working anymore. No error occurs, but no content is loaded in any control of the screen as long as the dropdownfield with a treepanel is present. If i remove it from the screen, the other controls get loaded normally. To illustrate the problem, i wrote this screen:
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
textBox1.DirectEvents.Change.Event += new ComponentDirectEvent.DirectEventHandler(Change_Event);
}
void Change_Event(object sender, DirectEventArgs e)
{
textBox2.Text = DateTime.Now.Second.ToString();
}
</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>Ext.Net Example</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:TextField runat="server" ID="textBox1">
</ext:TextField>
<ext:TextField runat="server" ID="textBox2">
</ext:TextField>
<ext:DropDownField ID="dfDashboard" runat="server" Editable="false" Width="300" TriggerIcon="SimpleArrowDown"
FieldLabel="Dashboard" LazyInit="false">
<Component>
<ext:TreePanel ID="tpDashboard" runat="server" Title="Itens Dashboard" Icon="Accept"
Height="220" Shadow="None" UseArrows="true" AutoScroll="true" Animate="true"
EnableDD="true" ContainerScroll="true" RootVisible="false">
<SelectionModel>
<ext:DefaultSelectionModel ID="DefaultSelectionModel1" runat="server">
</ext:DefaultSelectionModel>
</SelectionModel>
<Root>
<ext:TreeNode>
<Nodes>
<ext:TreeNode NodeID="660003_CON" Text="Documentos" Icon="FolderTable" Checked="False"
Leaf="true" />
</Nodes>
</ext:TreeNode>
</Root>
</ext:TreePanel>
</Component>
</ext:DropDownField>
</form>
</body>
</html>
Just write some stuff in textbox1 and leave the field. Notice that nothing is loaded into textbox2, it always stays blank. Now remove the dropdownfield and do the same. Notice that text is loaded normally into textbox2. Please, if there is a workaround for this without having to update from svn it would be perfect. We have to deliver this screen to our client on friday and i'm afraid that with new updates more problems will occurr.
Last edited by geoffrey.mcgill; Nov 25, 2010 at 4:16 PM.
Reason: [CLOSED]