:: Documentation >>

Width

Each grid column (cell, header and footer templates) is assigned a CSS class .aw-column-n where n is a column index. The width of each column can be set with CSS width attribute

.aw-column-1 {width: 200px;}

Use object id if you have several grids on one page -

#myGrid1 .aw-column-1 {width: 200px;}
#myGrid2 .aw-column-1 {width: 30px;}

The column width can also be set using column width property -

obj.setColumnWidth(200, 1); // set col-1 width to 200px

See also

Class reference - column width

Comments

setColumnWidth does not work for column 0 Frustrated User (3)
not working in Firefox Tim A (2)
My first script is not working Daminda (1)
Default columns widths S (1)

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5