Results 1 to 3 of 3

Thread: Text wrap in grid cells not works in IE.

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Location
    Valencia, Spain
    Posts
    66

    Default Text wrap in grid cells not works in IE.

    Hi, I used this style for wrap text in cell grid but works fine in Firefox and not work in IE, Why?
    The viewconfig of grid is {forceFit:true}

    function columnWrap(val){
    return '<div style="white-space:normal !important;">'+ val +'</div>';
    }

    new Ext.grid.GridPanel({
    [...],
    columns:[{
    id: 'someID',
    header: "someHeader",
    dataIndex: 'someID',
    hidden: false,
    sortable: true,
    renderer: columnWrap
    }]

    In IE:

    ie.jpg

    In Firefox:

    firefox.jpg

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    Try;

    Code:
     
    function columnWrap(value, metaData, record, rowIndex, colIndex, store)
    {
       metaData.attr = 'style="white-space:normal !important;"';
       return value;
    }

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Location
    Valencia, Spain
    Posts
    66

    Default

    Works fine !!
    Thank you very much for your help.

Similar Threads

  1. TreeGrid - Empty text and wrap text in cells
    By extjs3user in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 23 Jun 2010, 11:11 PM
  2. Text wrap in cells
    By awatkins in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 29 Apr 2009, 6:58 AM
  3. How to enable word-wrap in Grid cells?
    By maya in forum Ext 1.x: Help & Discussion
    Replies: 27
    Last Post: 27 Apr 2009, 8:32 AM
  4. How to wrap contents within cells of a grid
    By Cooldream in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 6 Apr 2008, 6:06 PM
  5. Text wrap in Grid cells
    By J. Brisbin in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 21 Aug 2007, 6:36 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •