[CLOSED] GridPanel: display a Column as a TextArea

  1. #1

    [CLOSED] GridPanel: display a Column as a TextArea

    Hi,
    I'd like to display multi-line content in a grid column. The GridPanel sort of removes line breaks and displays everything in one single line. Is there a possibility to override this behavior and to allow the grid line height to change instead?
    thx,
    Peter
  2. #2

    RE: [CLOSED] GridPanel: display a Column as a TextArea

    Hi,

    Try to use the following js renderer function for columns which contains multi-line values

    function nl2br(v){
         return v === undefined || v === null ? '' : v.replace(/\n/g, '<br/>');
    }
  3. #3

    RE: [CLOSED] GridPanel: display a Column as a TextArea

    Works perfectly!
    Thx,
    Peter

Similar Threads

  1. [CLOSED] How to display an image in GridPanel column?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 28, 2012, 1:15 PM
  2. Replies: 2
    Last Post: Jan 21, 2011, 12:53 PM
  3. [CLOSED] [1.0] Problem with HTML textarea inside a gridpanel's column
    By PoloTheMonk in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 14, 2010, 7:16 AM
  4. how to hide/display CheckboxSelection column in GridPanel.
    By Satyanarayana murthy in forum 1.x Help
    Replies: 2
    Last Post: Feb 26, 2010, 9:07 AM
  5. TextArea in IE6 can not display??
    By wkcode in forum 1.x Help
    Replies: 1
    Last Post: Apr 01, 2009, 11:30 PM

Posting Permissions