PDA

View Full Version : [FIXED] [V0.6] NumberField and AjaxEvents



Timothy
Sep 29, 2008, 6:02 PM
Hello,

Easy one here, just run the following sample and the replication steps:



<%@ 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">
<script runat="server">
protected void ComboBox1_Select(object sender, AjaxEventArgs e)
{

}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Example</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:NumberField ID="txtPrice" runat="server" AllowDecimals="True" DecimalPrecision="2" EmptyText="0" />
<ext:ComboBox ID="ComboBox1" runat="server">
<AjaxEvents>
<Select OnEvent="ComboBox1_Select" />
</AjaxEvents>
<Items>
<ext:ListItem Text="Word 1" />
<ext:ListItem Text="Word 2" />
</Items>
</ext:ComboBox>
</form>
</body>
</html>


Replication steps:

1. Load page
2. Select item from ComboBox
3. Oops NumberField!

Cheers,
Timothy

geoffrey.mcgill
Sep 30, 2008, 12:27 PM
Hi Timothy,

The <ext:NumberField> has been updated with a fix for this bug. 


Please svn update and confirm if things are working as expected now. 


Thanks for reporting the issue.