Dec 12, 2009, 8:34 AM
[CLOSED] Enabled property not working in AjaxEvent
Hi,
I'm not sure if this is a design change or a bug, but the following code does not cause the text field to be disabled (I'm sure that before some SVN update it had been working).
Tadeusz
I'm not sure if this is a design change or a bug, but the following code does not cause the text field to be disabled (I'm sure that before some SVN update it had been working).
<%@ 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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Basic Window - Coolite Toolkit Examples</title>
<link href="../../../../resources/css/examples.css" rel="stylesheet" type="text/css" />
<script runat="server">
protected void OnBeforeShow( object sender, AjaxEventArgs e )
{
testField.Enabled = false;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server" />
<ext:Window ID="Window1" runat="server" Title="Hello World!" Height="175px" Width="300px" BodyStyle="padding: 6px; background-color: #fff;" Collapsible="True" Modal="True" Icon="Application">
<AjaxEvents>
<BeforeShow OnEvent="OnBeforeShow">
</BeforeShow>
</AjaxEvents>
<Body>
<ext:TextField runat="server" ID="testField">
</ext:TextField>
</Body>
</ext:Window>
</form>
</body>
</html>
Regards,Tadeusz