[CLOSED] ext:TextArea MaxLen and EnforceMaxLength: Delete and Ctrl+C don´t work

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] ext:TextArea MaxLen and EnforceMaxLength: Delete and Ctrl+C don´t work

    Hi!

    Hi have in my window a ext:TextArea. I set the MaxLen to "100" and EnforceMaxLenght = "true". When the maximum number of characters is reached, the TextArea don´t trigger keys Delete and Ctrl+C... Backspace works fine...


    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test69.aspx.vb" Inherits="WebApplication3.Test69" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" 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 runat="server">
        <title></title>
        <style type="text/css" >
             .x-form-readonly .x-form-field,
             .x-form-readonly .x-form-display-field {
                color: Gray !important;
            }
        
            .my-readonly {
                color: Gray !Important;
            }
            
            .my-readonly .x-trigger-noedit* {
                color: Gray !Important;
            }
            
            .my-readonly .x-form-field, 
            .my-readonly .x-form-display-field {
                color: Gray !important;
            }
            
            
            .reset-readonly {
                color: Black !Important;
            }
            
        </style>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" /> 
        <form id="form1" runat="server">
    
        <ext:Window 
            runat="server"
            ID="wndPareceres" 
            Title="Pareceres"
            Hidden="false"
            AutoShow="true"
            Modal="true"
            icon="ApplicationAdd"
            Height="350"
            Width="450"
            Resizable="false" 
            BodyPadding="10"
            CloseAction="Destroy"
            layout="AnchorLayout"
            ButtonAlign="Center"
            DefaultButton="button[text=Ok]"
            >
            <Items>
                <ext:TextArea runat="server" ID="txtName" Text="dfakjlsdfjklasjfldkasjklfdjasklfjdsklajklfdjaskljdflkjaklfdjalskjfkdlasjkldfjsklajfdklasjfkldjsaklda" ReadOnly="false" AnchorHorizontal="100%" MaxLength="100" EnforceMaxLength="true" LabelAlign="Top" FieldLabel="Name"/>
            </Items>
            <Buttons>
                <ext:Button runat="server" ID="btnOk" Text="Ok" Icon="Accept" />
                <ext:Button runat="server" ID="btnCanel" Text="Cancelar" Icon="Cancel">
                    <Listeners>
                        <Click Handler="App.wndPareceres.close();" />
                    </Listeners>
                </ext:Button>
            </Buttons>
            <Listeners>
                <AfterRender Handler="App.txtName.focus(true,50)" />
            </Listeners>
        </ext:Window>
        </form>
    </body>
    </html>
    Last edited by Daniil; Apr 27, 2012 at 1:21 PM. Reason: [CLOSED]

Similar Threads

  1. Replies: 2
    Last Post: May 16, 2012, 4:35 PM
  2. Replies: 1
    Last Post: Apr 20, 2012, 3:23 PM
  3. maxLength don´t work
    By reinaldo.designerdigital in forum 1.x Help
    Replies: 3
    Last Post: May 15, 2009, 12:33 PM
  4. My GenericPlugin don´t work with <ext:TextField
    By reinaldo.designerdigital in forum 1.x Help
    Replies: 4
    Last Post: Jan 27, 2009, 2:56 PM
  5. SqlDataSource Sample - Delete Work?
    By Tbaseflug in forum 1.x Help
    Replies: 4
    Last Post: Dec 22, 2008, 10:18 AM

Tags for this Thread

Posting Permissions