adjust

defines whether the width of columns is automatically adjusted to the width of their content

boolean|string adjust;

Values

  • true|false|"header"|"data"
  • Example

    var treegrid = new dhx.TreeGrid("treegrid_container", {
        columns: [// columns config],
        adjust: true,      data: dataset
    });


    Default value:

    false

    Related samples

    Details

    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
    See also
    Change log

    added in v6.4

    Back to top