:: Home >>

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

7 Nov 07
setColumnWidth does not work for column 0 Frustrated User (3)
16 May 07
not working in Firefox Tim A (2)
26 Oct 06
My first script is not working Daminda (1)
11 Apr 06
Default columns widths S (1)

Comments will appear on this page and in the main forum.

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