Skip to main content

setColumns()

sets configuration for Grid columns

setColumns(columns: object[]): void;

Parameters:

  • columns: array - an array of objects with configuration of columns

Example

grid.setColumns([
{ id: "a", header: [{ text: "New header for column a" }] },
{ id: "b", header: [{ text: "New header for column b" }] },
// more columns objects
]);

Each column object may contain a set of properties. You will find the full list of the configuration properties of a Grid column here.