[CLOSED] Enabled property not working in AjaxEvent

  1. #1

    [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).

    <%@ 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
  2. #2

    RE: [CLOSED] Enabled property not working in AjaxEvent

    Hi,

    Use native ExtJS property: Disabled
    Enabled is ASP.NET property which can break ExtJS logic (adding disabled attribute to the html markup of the container)
  3. #3

    RE: [CLOSED] Enabled property not working in AjaxEvent

    OK. Thanks.

Similar Threads

  1. [CLOSED] problem with Enabled Property to Controls
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 07, 2011, 9:19 AM
  2. [CLOSED] Note property not updated during AjaxEvent
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Nov 19, 2009, 4:57 AM
  3. Replies: 4
    Last Post: May 07, 2009, 11:21 AM
  4. [CLOSED] Problem working with AjaxEvent
    By bkh1365 in forum 1.x Help
    Replies: 3
    Last Post: Oct 07, 2008, 9:24 AM
  5. [FIXED] [V0.6] AjaxEvent not working
    By Jurke in forum Bugs
    Replies: 3
    Last Post: Sep 09, 2008, 11:13 AM

Posting Permissions