Staff by country

Country banding keeps the same tint for consecutive country cells. Switch on Department banding for a second level; compare it with alternating row stripes.

100 fictional colleagues · sorted by country, then department.

{
    module        : Neo.grid.Container,
    flex          : 1,
    rowHeight     : 32,
    store         : Neo.examples.grid.valueBanding.MainStore,
    columnDefaults: {
        width: 150
    },
    body          : {
        stripedRows: false
    },
    columns       : [
        {
            dataField      : 'country',
            text           : 'Country',
            useValueBanding: true,
            width          : 125
        },
        {
            dataField      : 'department',
            text           : 'Department',
            useValueBanding: false,
            width          : 155
        },
        {
            dataField: 'name',
            text     : 'Colleague',
            flex     : 1,
            minWidth : 180
        },
        {
            dataField: 'role',
            text     : 'Role',
            width    : 180
        }
    ]
}