Apr 23, 2012, 8:34 PM
[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...
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]