Skip to content

adjustColumn

adjusts a column to the width of the content

function adjustColumn(
// column ID
id: string|number,
// optional, the adjustment mode ("header", "data", "all")
mode?: string
): void
datagrid.adjustColumn("title");
datagrid.adjustColumn("title", "header");

The adjustment modes are:

  • header - adjusts the column to the width of its header;
  • data (default) - adjusts the column to the width of its content;
  • all - combines the above mentioned modes and adjusts the column to the bigger value.

Articles

API