Indicates if the body of the grid is of fixed height.
Boolean, default = true
If the body of the grid is of fixed height, the height will be taken from the box the grid is in. Setting up the height of the box will define the height of the grid. However, if you set .fixedBody to false, the grid will have dynamic height depending on the number of records in it.
This property can be defined during object creation: $('#grid').w2grid({ name : 'grid', fixedBody : false, columns: [ { field: 'recid', caption: 'ID', size: '50px' }, { field: 'lname', caption: 'Last Name', size: '30%' }, { field: 'fname', caption: 'First Name', size: '30%' }, { field: 'email', caption: 'Email', size: '40%' }, { field: 'sdate', caption: 'Start Date', size: '120px' }, { field: 'sdate', caption: 'End Date', size: '120px' } ] }); Or any time after the grid has been created: w2ui['layout'].fixedBody = true; w2ui['layout'].refresh();