TextArea wordwarp bug

Page 1 of 2 12 LastLast
  1. #1

    TextArea wordwarp bug

    I believe I have found an unwanted feature with the TextArea control.

    I was finding that my TextArea controls were not word wrapping, which I can see from other posts is not a new topic, however, I am trying to validate my data entry by using the MaxLength property if the control. I have found that if the MaxLength property is set, then the wordwrap does not work.

    Is there a way around this as I want both features?

    The code below is a very simple example. I am using v0.81

    
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="TestJDG.aspx.vb" Inherits="TestJDG" %>
    <%@ 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></title>
    </head>
    <body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <ext:Panel runat="server" Border="false">
    <Body>
    <ext:FormLayout ID="FormLayout1" runat="server">
    <ext:Anchor>
    <ext:TextArea ID="TextArea1" runat="server" HideLabel="true" Height="40" MaxLength="120" />
    </ext:Anchor>
    </ext:FormLayout>
    </Body>
    </ext:Panel>
    </form>
    </body>
    </html>
    Thanks,
  2. #2

    RE: TextArea wordwarp bug

    Hi,

    I think it is fixed already in 0.8.2
    You can use AutoEl to turn om wrapping. Please see

    http://forums.ext.net/showthread.php...9210-16-1.aspx


  3. #3

    RE: TextArea wordwarp bug

    'AutoEl' worked a treat.. Thanks vladimir :)
  4. #4

    RE: TextArea wordwarp bug

    The AutoEl fix has caused another feature to pop up.

    I am using am AjaxEvent on the click of a button on my form to use the contents of my TextArea like this:

    Sub btnSave_Click(ByVal snder As Object, ByVal e As AjaxEventArgs)
        RaiseEvent SelectSave(txtNEW.Text, chkCheckbox.Checked, txtBottomTextAreaNew.Text)
    End Sub
    However, txtNEW.Text only populates if I do not add the AutoEl property to my TextArea control. With the AutoEl property it returns an emptry string.

    Is there some way of getting around this?

    My TextArea html:
    <ext:TextArea ID="txtNEW" runat="server" MaxLength="1000" AllowBlank="false"
    AutoEl="={{tag:'textarea', wrap: 'on'}}" Width="500" Height="100" EnableKeyEvents="true">
    <Listeners>
    <KeyUp Fn="UpdateCharsLeft1" />
    </Listeners>
    </ext:TextArea>
  5. #5

    RE: TextArea wordwarp bug

    I have tried getting the value from the TextArea using an ExtraParam on the click event, but this too is blank.

    Anyone got any ideas about my TextArea issue?

  6. #6

    RE: TextArea wordwarp bug

    Still no joy with this, any ideas?

    Thanks,

  7. #7

    RE: TextArea wordwarp bug

    I am still loosing text off the side of my textarea.

    Any ideas when v0.82 will be out?

  8. #8

    RE: TextArea wordwarp bug

    Hi, i have the same problem and using 0.8.2 already...

    The text is show in the textarea, but if i try to get the .text on codebehind is allways nullstring.


    If i enter in the filed and put a single caracter on the last position, for example, then the codebehind can get the entire text.




  9. #9

    RE: TextArea wordwarp bug

    Hi,

    try it:

    <ext:TextArea ID="txtTest" AutoEl="={{tag:'textarea',wrap: 'on', name:'txtTest'}}" runat="server" FieldLabel="Teste" MsgTarget="Side" AllowBlank="false" BlankText="Campo obrigatório" /
    hope it helps.
  10. #10

    RE: TextArea wordwarp bug

    Great.. it works...

    Very tks...
Page 1 of 2 12 LastLast

Similar Threads

  1. TextArea.Text
    By paual in forum 1.x Help
    Replies: 0
    Last Post: May 18, 2012, 3:30 AM
  2. Rich TextArea
    By ankit in forum 1.x Help
    Replies: 1
    Last Post: Jun 14, 2010, 3:46 PM
  3. Problem with ext:TextArea
    By hbbazan in forum 1.x Help
    Replies: 2
    Last Post: Feb 24, 2010, 3:38 PM
  4. set the length for TextArea
    By Dinesh.T in forum 1.x Help
    Replies: 4
    Last Post: Jun 19, 2009, 2:42 AM
  5. [FIXED] [V0.6] TextArea
    By Timothy in forum Bugs
    Replies: 3
    Last Post: Sep 21, 2008, 6:12 PM

Posting Permissions