When my grid view returns no results my ID column is suddenly much wider than when there are results in the grid.
This is probably due to the dynamic resizing of the columns based on the data returned.
How can I set the max width of the id column?
The following did not work for me…
$columns = [
[
'attribute'=>'id',
'contentOptions'=>['style'=>'width: 50px;']
],
];
$columns = [
[
'attribute'=>'id',
'contentOptions'=>['style'=>'max-width: 50px;']
],
];
Any suggestions ?