Results 1 to 3 of 3

Thread: Custom Grid Cells

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    29

    Default Answered: Custom Grid Cells

    Say I have a grid and I want to have a bigger cells in it, with a title, subtitle and details and maybe even an image too.

    Is this possible?

    Has anybody tried this?

    Thanks in advance

  2. may be this helps:

    http://docs.sencha.com/extjs/4.2.0/#...od-getRowClass

    you can change the class to adjust the height etc. Take a look at this thread:
    http://www.sencha.com/forum/showthre...eight-for-grid

    Also look at the renderer function for grid column. you can return HTML e.g.

    Code:
    { text: 'Name',  dataIndex: 'name', 
             renderer: function(val)
             {
                 return "<span style='padding:15px;'>" + val + "</span>";
             }
    }
    where val is the value of the data in that cell and you can use css styling.

  3. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,102
    Answers
    113

    Default

    may be this helps:

    http://docs.sencha.com/extjs/4.2.0/#...od-getRowClass

    you can change the class to adjust the height etc. Take a look at this thread:
    http://www.sencha.com/forum/showthre...eight-for-grid

    Also look at the renderer function for grid column. you can return HTML e.g.

    Code:
    { text: 'Name',  dataIndex: 'name', 
             renderer: function(val)
             {
                 return "<span style='padding:15px;'>" + val + "</span>";
             }
    }
    where val is the value of the data in that cell and you can use css styling.

  4. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    29

    Default

    That got me in the right direction! Thanks a lot!

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
  •