CustomInFilterValuesContext

Context used when providing values for the IN Column Filter

TypeScript
export interface CustomInFilterValuesContext<TData = any> extends
Extends

AdaptableColumnContext

Properties

PropertyTypeDescriptionDefault
currentSearchValuestringCurrent text in the IN Filter search box.
defaultValuesRequired<InFilterValueInfo>[]Distinct Column values in natural (unsorted) row iteration order.
limitnumberSuggested page size. Consumers may return fewer or more items. Useful when hasMore is true on the return object (lazy pagination).1000
offsetnumberZero-based index of the first value to return. Reset to 0 when the dropdown opens or currentSearchValue changes. Increased when loading the next page (hasMore is true on the return object - this means lazy pagination is enabled).0
orderedValuesRequired<InFilterValueInfo>[]Distinct Column values in the order they appear in the grid from top to bottom.
previousFilterResultInFilterValueResultThe result returned by the previous invocation of FilterOptions.customInFilterValues, if any.
selectedValuesInFilterValue[]Values currently selected in the IN (or NOT IN) Column Filter.
sortedValuesRequired<InFilterValueInfo>[]Distinct Column values sorted by the Column's own sort direction (Asc / Desc).
adaptableContextanyCustom application Context provided in AdaptableOptions.adaptableContext

Property Details

currentSearchValue

Current text in the IN Filter search box.

Useful when implementing server-side filtering of the value list.

TypeScript
currentSearchValue: string;
Property Value

string

defaultValues

Distinct Column values in natural (unsorted) row iteration order.

When the Column uses a Tree Filter, items have a hierarchical structure.

Computed lazily on first access.

TypeScript
defaultValues: Required<InFilterValueInfo>[];
Property Value

Required<InFilterValueInfo>[]

limit

Suggested page size. Consumers may return fewer or more items. Useful when hasMore is true on the return object (lazy pagination).

TypeScript
limit: number;
Default Value

1000

Property Value

number

offset

Zero-based index of the first value to return. Reset to 0 when the dropdown opens or currentSearchValue changes. Increased when loading the next page (hasMore is true on the return object - this means lazy pagination is enabled).

TypeScript
offset: number;
Default Value

0

Property Value

number

orderedValues

Distinct Column values in the order they appear in the grid from top to bottom.

Always a flat list, even when the Column uses a Tree Filter.

Computed lazily on first access.

TypeScript
orderedValues: Required<InFilterValueInfo>[];
Property Value

Required<InFilterValueInfo>[]

previousFilterResult

The result returned by the previous invocation of FilterOptions.customInFilterValues, if any.

Useful for avoiding expensive recomputations (e.g. when filtering is async or server-side). Opaque pagination cursors may also be stashed on this object and read on the next call.

TypeScript
previousFilterResult?: InFilterValueResult;
Property Value

InFilterValueResult

selectedValues

Values currently selected in the IN (or NOT IN) Column Filter.

Labels are resolved from previously loaded In Filter items when available.

Useful with lazy pagination or server-side search: selected items may not be in the current page.

TypeScript
selectedValues: InFilterValue[];
Property Value

InFilterValue[]

sortedValues

Distinct Column values sorted by the Column's own sort direction (Asc / Desc).

If the Column has no active sort, values are returned in the same order as defaultValues.

When the Column uses a Tree Filter, items have a hierarchical structure.

Computed lazily on first access.

TypeScript
sortedValues: Required<InFilterValueInfo>[];
Property Value

Required<InFilterValueInfo>[]

adaptableContext

Inherited from BaseContext

Custom application Context provided in AdaptableOptions.adaptableContext

TypeScript
adaptableContext: any;
Property Value

any