SMART datagrid v.1 > Examples

[ grids ver.1.3.8]   Back  Forward

Style Region - Grid  Example

1. Grid Styles

You can specify the background color and border style of the grid view through GridBase.styles property. 

Grid - 1
rows

   

Code -1
    grid.setStyles({
        background: '#1000ff88',
        border: '#0000ff,1px,dashed'
    });    

If set the background color of the grid differently from white, you should specify the background color of body area separately as below. 

Code -2
    grid.loadStyles({
        body: {
            background: '#fff'
        }
    });
2. Grid Borders

You can specify border of the grid styles as null, and specify borderLeft, borderRight, borderTop, borderBottom separately to display the grid borders. v 1.3.8 

Grid - 2
rows

   

View Source JSP 

See Also
styles
GridStyles
Examples
Style Region - Body
Empty Grid
Load Styles