Skip to content

hideColumn

hides the specified column

function hideColumn(
// mandatory, the column ID
id: id,
// optional, an object with hiding options
options?: WebixDatatableHideColumnConfig,
// optional, if true, the datagrid is not refreshed
silent?: boolean,
// optional, if true, the column is hidden
mode?: boolean
): void
dgrid.hideColumn("price");
// hides a column with a spanned header together with related columns
dgrid.hideColumn("price", {spans:true});

also check the next samples:

By default, spanned columns are not affected by the actions performed upon the column that starts this span.

The data of the hidden column can still be accessed, but API calls against it will result in an error.

Articles

API