AutoFillSettings

Props

The following table outlines the props for the AutoFillSettings:

NameTypeDefaultDescription
enabled
boolean
false

Enables or disables the cell fill feature in the grid. When enabled, users can drag from selected cells to fill adjacent cells with patterns or sequences. Requires cell selection to be active and editing to be enabled.

excludeFromAutoFill
(fieldName: string) => boolean
false (all columns are filled by default)

Determines whether a specific column should be excluded from autofill operations. When a column is marked as skipped, its cells retain their existing values and do not participate in fill operations. Called during autofill processing for each column in the selection.

fillOperation
(args: CellFillOperationArgs) => ValueType | false
-

Custom callback to override default fill value logic. Called for each destination cell to determine what value should be filled. Return the fill value, or return false to use the default algorithm.

preventBackwardFill
boolean
false

Determines whether to clear cells when reducing the fill range. When false (default), dragging backward clears the previously filled cells to null. When true, can't drag backward to reduce the range.