Results 1 to 3 of 3

Thread: variable height grid rows

  1. #1

    Default variable height grid rows

    Hi all,
    I'm trying to make a grid with rows that have a variable height. The height should be based on the contents of a single column ('message') that should wrap and make the row height increase. I've searched around but couldn't find any examples on this.

    For instance:

    Code:
    -------------------------------
    |  row1 |   short message     |
    -------------------------------
    |  row2 |   a very  long      |
    |       | string that wraps   |
    -------------------------------


    Any help or directions on this would be appreciated.

  2. #2
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    299

    Default

    Just implement a renderer on that col:

    PHP Code:
    renderer: function (valuemeta) {
           
    meta.attr 'style="white-space:normal"';
           return 
    value;
           } 

  3. #3
    Sencha User
    Join Date
    Aug 2009
    Location
    Tamworth, NSW, Australia
    Posts
    32

    Default

    thanks. I needed to know that, too.

Posting Permissions

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