CustomInFilterValuesContext

Context used when providing values for the IN Column Filter

TypeScript
export interface CustomInFilterValuesContext<TData = any> extends
Extends

AdaptableColumnContext

Properties

PropertyTypeDescription
currentSearchValuestringCurrent text in the IN Filter search box.
defaultValuesRequired<InFilterValueInfo>[]Distinct Column values in natural (unsorted) row iteration order.
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.
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>[]

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).

TypeScript
previousFilterResult?: InFilterValueResult;
Property Value

InFilterValueResult

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