React Data GridColumn Reference

Attributes and methods available on the Column instance.

Clipboard

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

Column Groups

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

Definitions

getColIdCopy Link
Function
Returns the unique ID for the column. Equivalent: getId, getUniqueId
getColDefCopy Link
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 Link
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 Link
true
isColumn is always true. Used to distinguish between columns and column groups.

Display

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

Editing

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

Events

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

Filtering

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

Keyboard

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

Menu

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

Moving

isMovingCopy Link
Function
Returns true while the column is being moved.

Pinning

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

Row Aggregation

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

Row Dragging

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

Row Grouping

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

Row Pivoting

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

Selection

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

Sizing

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

Sorting

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

Spanning

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

Tooltip

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