DkGrid
  • Overview
  • Getting Started
    • Quick Start Tutorial
  • Fundamentals
    • Grid Structure
      • Grid Size
      • Header
      • Row Filter
      • Rows
      • Panels
      • Gutters
      • Edition Toolbar
      • Paginator
      • Borders
      • Column Context Menu
      • Waiting Indicator
    • DataSource
      • In-Memory DataSource
      • Custom DataSource
    • Theming
  • Columns
    • Column Definitions
    • Column Grouping
    • Column Sizing
    • Column Moving
    • Column Pinning
  • Rows
    • Row Sorting
    • Row Selection
    • Row Grouping
    • Row Pagination
  • Filtering
    • Column Filters
    • Filter types
    • In-line Filters
  • Editing
    • Row Edition
    • Edition templates
    • Edition validation
    • Multiple rows edition
  • Reference
    • DkGrid API
      • DkGridColumnDef
      • DkGridSorting
      • DkGridSelection
      • DkGridRowGrouping
      • DkGridPagination
      • DkGridWaitingIndicator
      • DkGridFactoryDataSource
      • DkGridFilter
      • DkGridEdition
    • Components
      • DkGridComponent
      • DkGridColumnComponent
    • Classes
      • DataSource
      • Columns
      • Rows
      • Filtering
      • Editing
    • Interfaces
      • Columns
      • Sorting
      • Row Grouping
      • Filtering
      • Editing
    • Injection Tokens
      • Grid Structure
      • Filtering
      • Editing
      • Theming
    • Type aliases
      • DataSource
      • Columns
      • Selection
      • Filtering
      • Editing
    • Type Guards
Powered by GitBook
On this page
  • Generics
  • Properties
  • Methods
  • Events
  1. Reference
  2. DkGrid API

DkGridFilter

You can access this instance through the property named filter of the DkGridComponent.

Generics

<T> represents the object's shape coming from the data source.

Properties

Property
Description

filterables

It is a read-only property that returns all the defined filterables.

Type:

Map<string, DkFilterable<T>>.

Methods

Method
Description

clearFilter()

It removes all conditions from filterables.

Params: None.

Return: void.

isFilterApplied()

It evaluates if the DkGrid instance has one filter condition applied, at least.

Params: None.

Return: boolean.

getFilteredRows()

It returns all rows that meet the filter conditions criteria.

Params: None.

Return: DkGridDataRowEntry<T>[].

Events

Event
Description

registerFilterableChange

It emits when you define a column as filterable. Then, the DkGrid instance will add the column to the internal Map named filterables.

Params: None.

Return: Observable<DkFilterable<T>>.

deregisterFilterableChange

It emits when you make a column not filterable when it was filterable. Then, the DkGrid instance will remove the column to the internal Map named filterables.

Params: None.

Return: Observable<DkFilterable<T>>.

filterChange

It emits when the user has defined/changed a filter condition.

Params: None.

Return: Observable<DkFilterable<T>>.

editionFilterChange

It emits when the user has defined/changed an edition filter condition.

Params: None.

Return: Observable<DkFilterable<T>>.

clearFilterChange

It emits after the DkGrid instance has removed all the filter conditions.

Params: None.

Return: Observable<void>.

clearEditionFilterChange

It emits after the DkGrid instance has removed all the filter conditions from the edition filterables.

Params: None.

Return: Observable<void>.

PreviousDkGridFactoryDataSourceNextDkGridEdition

Last updated 2 years ago