defines whether the width of columns is automatically adjusted to the width of their content
var grid = new dhx.Grid("grid_container", {
columns: [// columns config],
adjust: true, data: dataset
});
The property can be specified to one of the available adjustment modes:
"header" | adjusts the columns to the width of their header |
"footer" | adjusts the columns to the width of their footer |
"data" | adjusts the columns to the width of their content |
true | combines the above mentioned modes and adjusts the column to the bigger value |
Note, that:
htmlEnable: true
in the configuration object of the column which contains HTML content;htmlEnable:true
in the configuration object of Grid;htmlEnable: true
allows calculating the content of simple HTML templates by excluding HTML markup and calculating internal content;added in v6.4
Back to top