Skip to main content

adjustColumnWidth()

adjusts the width of a column to make all its content visible

adjustColumnWidth(colId: Id, adjust?: string | boolean): void;

Parameters:

  • colId: string | number - the id of a column
  • adjust: string | boolean - optional, the mode of adjusting a column ("header", "data", true)

Example

treegrid.adjustColumnWidth("b", "header");

If no value is set to the adjust parameter, the adjustColumnWidth method sets it to true.