Skip to main content

adjustColumnWidth()

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

adjustColumnWidth(rowId: string | number, adjust?: "data" | "header" | "footer" | boolean): void;

Parameters:

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

Example

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

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

Related API: adjust