Results 1 to 2 of 2

Thread: Grid

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    5

    Default Grid

    I got a question related to grid. How can I insert multiple data which belong to different data index into a same column?

    Thank you

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335

    Default use renderer

    Hi,
    Try to use renderer for your column:
    Please see this:
    Code:
    {
        header: 'Test Header'
        , dataIndex: 'number'
        , renderer: function(value, metaData, record) {
            return value+ record.data.unit;
                    // for example returns  '2 meters'
        }
    }
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Posting Permissions

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