FilterSettingsModel
23 Sep 20252 minutes to read
Interface for a class FilterSettings
Properties
columns PredicateModel[]
Specifies the columns to be filtered at initial rendering of the Grid. You can also get the columns that were currently filtered.
enableCaseSensitivity boolean
If enableCaseSensitivity is set to true then searches grid records with exact match based on the filter
operator. It will have no effect on number, boolean and Date fields.
enableInfiniteScrolling boolean
If enableInfiniteScrolling set to true, then the data will be loaded in Checkbox filter Popup content, when the scrollbar reaches the end.
This helps to load large dataset in Checkbox filter Popup content.
<ejs-grid [dataSource]="data" height='300' enableInfiniteScrolling='true' > </ejs-grid>import { Component, OnInit } from '@angular/core';
import { orderData } from './data';
import { GridComponent,InfiniteScrollService } from '@syncfusion/ej2-angular-grids';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
providers: [InfiniteScrollService]
})
export class AppComponent implements OnInit{
public data: Object[];
public ngOnInit(): void {
this.data = orderData;
}
}ignoreAccent boolean
If ignoreAccent set to true, then filter ignores the diacritic characters or accents while filtering.
Check the
Diacriticsfiltering.
immediateModeDelay number
Defines the time delay (in milliseconds) in filtering records when the Immediate mode of filter bar is set.
itemsCount number
If enableInfiniteScrolling set to true, For on demand request, Gets data from the parent data source based on given number of records count.
loadingIndicator IndicatorType
Defines the loading indicator. The available loading indicator are:
- Spinner
- Shimmer
mode FilterBarMode
Defines the filter bar modes. The available options are,
-
OnEnter: Initiates filter operation after Enter key is pressed. -
Immediate: Initiates filter operation after a certain time interval. By default, time interval is 1500 ms.
operators ICustomOptr
The operators is used to override the default operators in filter menu. This should be defined by type wise
(string, number, date and boolean). Based on the column type, this customize operator list will render in filter menu.
Check the
Filter Menu Operatorcustomization.
showFilterBarOperator boolean
If ‘showFilterBarOperator’ is set to true, then it renders the dropdownlist component to select the operator
in filterbar input
showFilterBarStatus boolean
Shows or hides the filtered status message on the pager.
type FilterType
Defines options for filtering type. The available options are
-
Menu- Specifies the filter type as menu. -
CheckBox- Specifies the filter type as checkbox. -
FilterBar- Specifies the filter type as filterbar. -
Excel- Specifies the filter type as checkbox.