JavaScript Data GridColumn Reference

Attributes and methods available on the Column instance.

Clipboard

isSuppressPasteCopy
Function
Returns true if paste is suppress for this column and row node.

Column Groups

getParentCopy
Function
Returns the parent column group, if column grouping is active.
getOriginalParentCopy
Function
Returns the parent column group, if this column is part of a column group.
getColumnGroupShowCopy
Function
Returns whether this column should be shown when the group is open / closed or undefined if its always shown.
getColumnGroupPaddingInfoCopy
Function
Returns column group padding info.
isEmptyGroupCopy
Function
Returns true if this is an empty group.

Definitions

getColIdCopy
Function
Returns the unique ID for the column. Equivalent: getId, getUniqueId
getColDefCopy
Function
Returns the column definition for this column. The column definition will be the result of merging the application provided column definition with any provided defaults (e.g. defaultColDef grid option, or column types. Equivalent: getDefinition
getUserProvidedColDefCopy
Function
Returns the column definition provided by the application. This may not be correct, as items can be superseded by default column options. However it's useful for comparison, eg to know which application column definition matches that column.
isColumnCopy
true
isColumn is always true. Used to distinguish between columns and column groups.

Display

getLeftCopy
Function
Returns the left position of the column.
isVisibleCopy
Function
Returns true if the column is visible.

Editing

isCellEditableCopy
Function
Returns true if the cell for this column is editable for the given rowNode, otherwise false.
isSuppressFillHandleCopy
Function
Returns true if the fill handle is suppressed.

Events

addEventListenerCopy
Function
Add an event listener to the column.
removeEventListenerCopy
Function
Remove event listener from the column.

Filtering

isFilterAllowedCopy
Function
Returns true if column filtering is allowed.
isFilterActiveCopy
Function
Returns true if filter is active on the column.

Keyboard

isSuppressNavigableCopy
Function
Returns true if navigation is suppressed for the given column and rowNode.

Menu

isMenuVisibleCopy
Function
Returns true if a menu is visible for this column.

Moving

isMovingCopy
Function
Returns true while the column is being moved.

Pinning

getPinnedCopy
Function
Returns the pinned state of the column.
isPinnedCopy
Function
Returns true if this column is pinned either left of right.
isPinnedLeftCopy
Function
Returns true if this column is pinned left.
isPinnedRightCopy
Function
Returns true if this column is pinned right.
isFirstRightPinnedCopy
Function
Returns true if this column is the first right pinned column.
isLastLeftPinnedCopy
Function
Returns true if this column is the last left pinned column.

Row Aggregation

isAllowValueCopy
Function
Returns true if this column can be used as a value column.
isValueActiveCopy
Function
Returns true if value (aggregation) is currently active for this column.
getAggFuncCopy
Function
If aggregation is set for the column, returns the aggregation function.

Row Dragging

isRowDragCopy
Function
Returns true if this column and row node can be dragged.
isDndSourceCopy
Function
Returns true if this column and row node allows dragging for native drag and drop.

Row Grouping

isAllowRowGroupCopy
Function
Returns true if this column can be used as a row group column.
isRowGroupActiveCopy
Function
Returns true if row group is currently active for this column.
isRowGroupDisplayedCopy
Function
Returns true if this column group is being used to display a row group value.

Row Pivoting

isAllowPivotCopy
Function
Returns true if pivoting is allowed for this column
isPivotActiveCopy
Function
Returns true if pivot is currently active for this column.
isPrimaryCopy
Function
Returns true if column is a primary column, false if secondary. Secondary columns are used for pivoting.

Selection

isCellCheckboxSelectionCopy
Function
Returns true if this column and row node has checkbox selection.

Sizing

getActualWidthCopy
Function
Returns the current width of the column. If the column is resized, the actual width is the new size.
getMinWidthCopy
Function
Returns the minWidth of the column or the default min width.
getMaxWidthCopy
Function
Returns the max width for the column.
getFlexCopy
Function
Returns the flex value of the column or null if not set.
isResizableCopy
Function
Returns true if this group is resizable.
isAutoHeightCopy
Function
Returns true if the column has autoHeight enabled.
isAutoHeaderHeightCopy
Function
Returns true if the column header has autoHeight enabled.
getAutoHeaderHeightCopy
Function
Returns the auto header height.
isSpanHeaderHeightCopy
Function
Returns true if this column spans the header height.

Sorting

getSortCopy
Function
If sorting is active, returns the sort direction e.g. 'asc' or 'desc'.
isSortableCopy
Function
Returns true if sorting is enabled for this column via the sortable property.
getSortIndexCopy
Function
Returns the sort index for this column.

Spanning

getColSpanCopy
Function
Returns the column span for this column and row node.

Tooltip

isTooltipEnabledCopy
Function
Returns true if a tooltip is enabled for this column.