setColumns

sets configuration for Grid columns

void setColumns(array columns);

Parameters

columnsarrayan 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
]);

Details

Each column object may contain the followings fields:

See also
Back to top