SMART datagrid v.1 > Examples

[ grids ver.1.3.1]   Back  Forward

Row Group Levels  Example

The style of each level and several properties of the row group can be specified by setting RowGroup.levels. The property of each level is specified through RowGroupLevel object. 

In the example below, it specifies the group header, footer and expander properties, and also specifies the height of the header and the display text separately. 

Grid - 1
rows
Code -1
    grid.setOptions({
        rowGroup: {
            levels: [{
                headerStyles: {
                    borderTop: null,
                    borderBottom: '#55',
                    background: "#777",
                    color: "#fff"
                }, 
                footerStyles: {
                    background: "#500088ff"  
                },
                expanderStyles: {
                    borderTop: null,
                    borderBottom: '#55',
                    background: "#777",
                    shapeColor: "#fff"
                }
            },
            ...
            ]
        },
        ...
    });

View Source JSP 

See Also
RowGroupLevel
RowGroup.levels
GridView.rowGroup
GridView.groupBy
Examples
Row Grouping
Merged Row Grouping