[CLOSED] wrapping in textarea

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] wrapping in textarea

    hello,

    i couldn't see which property wraps the given text. can you point me?


    thanks,
  2. #2

    RE: [CLOSED] wrapping in textarea

    Hi,

    Do you mean how to get text from TextArea using server-side property? If yes then you need to use Text property
  3. #3

    RE: [CLOSED] wrapping in textarea

    <div style="text-align: left;">No I mean wrapping the text. So let's say you a textarea with 100 px width and your text to put in it is more than 100 px. In that case if you don't want scrolling you do say wrap and it shows in 2 lines or more.
    <div style="text-align: left;">

    <div style="text-align: left;">Below is an example from asp.net control.


    <asp:TextBox Wrap="true" TextMode="MultiLine" runat="server />





    hope it helps.


    Thanks,
    Gokce
  4. #4

    RE: [CLOSED] wrapping in textarea

    Hi,

    TextArea wraps the text by default. If you need to turn off it then you need define own AutoEl (I think we will add Wrap property in next release)


    <ext:TextArea runat="server" Width="100" AutoEl="={{tag:'textarea', autocomplete: 'off', wrap: 'off'}}">
  5. #5

    RE: [CLOSED] wrapping in textarea

    No it doesn't wrap automatically and if it did I wouldn't write here, would I?

    So please when you answer don't assume that I'm writing my first lines of code in my career because I didn't do to you the same thing when you understood wrapping as getting the text!


    And please check with your development team that your text area doesn't do auto wrapping. All and all, this is a very basic requirement and I don't understand how come you don't put this property ...

    My textarea was:


    <ext:TextArea runat="server" Width="100" />
    I put and this:
    AutoEl="={{tag:'textarea', autocomplete: 'off', wrap: 'on'}}"
    and it became ...

    <ext:TextArea runat="server" Width="100" AutoEl="={{tag:'textarea', autocomplete: 'off', wrap: 'on'}}">



    vola .. it does wrap now!!! funny how automatic wrapping doesn't work.


    Thanks for your efforts.



  6. #6

    RE: [CLOSED] wrapping in textarea

    Hi,

    Wrap attribute is depricated, it is better to use css rules (I think in your application there is a rule which turn off wrapping by default therefore we have different 'by default' behaviour)

    See the following example
    <%@ 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 runat="server">
        <title></title>
        
        <style type="text/css">
            .wrap-area{
                white-space:pre;
            }
            
            .nowrap-area{
                white-space:nowrap;
            }
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ScriptManager runat="server" />
            
            <ext:TextArea runat="server" Width="100" Cls="nowrap-area"/> 
            
            <br />
            <br />
            
            <ext:TextArea runat="server" Width="100" Cls="wrap-area"/>      
    
        </form>
    </body>
    </html>
  7. #7

    RE: [CLOSED] wrapping in textarea

    Hi gokcemutlu,


    I have a couple questions:


    1. Which version of Coolite are you using? 0.8.0, 0.8.1, svn or other?


    2. Can you confirm if there are any custom css classes within your application that might be setting the white-space:nowrap property globally across textarea elements? I ran a couple quick tests with the latest build from svn and the <ext:TextArea> appears to be wrapping text properly. Although an external css rule could easily change that behaviour.



    Geoffrey McGill
    Founder
  8. #8

    RE: [CLOSED] wrapping in textarea

    I found in another forum thread that you are using a recent build (0.8.2.*) from svn.

    Geoffrey McGill
    Founder
  9. #9

    RE: [CLOSED] wrapping in textarea

    Hi,


    For this project I haven't updated from svn still. 0.8.1.15470 is the version of the current dll.

    Thanks,
    Gokce
  10. #10

    RE: [CLOSED] wrapping in textarea

    gokcemutlu (9/3/2009)Hi,


    For this project I haven't updated from svn still. 0.8.1.15470 is the version of the current dll.

    Thanks,
    Gokce
    ok. I thanks for the update. I think this issue may be related to a defect that was recently fixed. I'm researching the history and will respond shortly.


    Geoffrey McGill
    Founder
Page 1 of 2 12 LastLast

Similar Threads

  1. [1.0] Image Command + Text Wrapping
    By mj.daly in forum 1.x Help
    Replies: 0
    Last Post: Apr 20, 2011, 9:21 AM
  2. [CLOSED] GridPanel Header wrapping causing odd appearance
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 06, 2010, 6:12 PM
  3. grid column text wrapping
    By [WP]joju in forum 1.x Help
    Replies: 0
    Last Post: Nov 18, 2009, 3:32 AM
  4. Message Box Text Wrapping
    By EzaBlade in forum 1.x Help
    Replies: 0
    Last Post: Oct 23, 2009, 11:52 AM
  5. ComboBoxes and wrapping within a table cell
    By principal_X in forum 1.x Help
    Replies: 1
    Last Post: Dec 24, 2008, 5:29 PM

Posting Permissions