You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Flutter/datagrid/filtering.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,21 @@
1
1
---
2
2
layout: post
3
3
title: Filtering in Flutter DataGrid | DataTable | Syncfusion
4
-
description: Learn here all about how to filter the data rows in Syncfusion Flutter DataGrid (SfDataGrid) widget and more.
4
+
description: Learn all about how to filter the data rows in Syncfusion Flutter DataGrid (SfDataGrid) widget and more here.
5
5
platform: flutter
6
6
control: SfDataGrid
7
7
documentation: ug
8
8
---
9
9
10
10
# Filtering in Flutter DataGrid (SfDataGrid)
11
11
12
-
Filtering is the process of fetching the values from the collection which satisfy the specified condition. In the `SfDataGrid`, the filtering can be applied through the UI as well as programmatically.
12
+
Filtering is the process of fetching the values from a collection that satisfies a specified condition. In the `SfDataGrid`, filtering can be applied through the UI and programmatically.
13
13
14
14
## Programmatical Filtering
15
15
16
16
The SfDataGrid allows you to filter the data rows programmatically by adding the filter conditions along with the respective column name to the `DataGridSource.filterConditions` map collection. In the map collection, the `key` defines the `columnName` and the `values` defines the list of `FilterCondition`.
17
17
18
-
`DataGridSource.filterConditions`is a unmodifiable map collection. So, it doesn't allow to perform CRUD operations directly in the `DataGridSource.filterConditions` property. But, it can be done by the following public methods.
18
+
`DataGridSource.filterConditions` is an unmodifiable map collection. So, it doesn't allow us to perform CRUD operations directly in the `DataGridSource.filterConditions` property. However, it can be done by the following public methods:
@@ -448,11 +448,11 @@ After filtering, the rows can be retrieved in the same order as displayed in the
448
448
449
449
## UI Filtering
450
450
451
-
The `SfDataGrid` provides excel-like filtering UI and also advanced filter UI to filter the data easily. UI filtering can be enabled by setting `SfDataGrid.allowFiltering` property to `true`. This allows to open the filter UI by clicking on the filter icon available in the column header. The filtering UI will be shown as a popup menu on the desktop and web platforms and it will be shown as a new page on the mobile platforms.
451
+
The `SfDataGrid` provides an excel-like filtering UI and an advanced filter UI to filter the data easily. UI filtering can be enabled by setting the `SfDataGrid.allowFiltering` property to `true`. This allows the filter UI to be opened by clicking on the filter icon in the column header. The filtering UI will be shown as a popup menu on the desktop and web platforms, and it will be shown as a new page on the mobile platforms.
452
452
453
-
The `SfDataGrid` provides the following types of filter popup modes,
453
+
The `SfDataGrid` provides the following types of filter popup modes:
454
454
455
-
* **Checkbox Filter** - Provides excel like filter interface with list of check boxes.
455
+
* **Checkbox Filter** - Provides excel like filter interface with a list of checkboxes.
456
456
* **Advanced Filter** - Provides advanced filter options to filter the data with multiple conditions.
457
457
458
458

@@ -473,8 +473,8 @@ The Checkbox filtering is like the Excel-like filter popup that shows the checke
473
473
474
474
### Advanced filtering
475
475
476
-
Advanced filter UI provides multiple filter options to filter the data rows. The filter menu options are loaded based on advanced filter type by automatically detecting the underlying date type of the current column.
477
-
Below are the built-in filter types supported.
476
+
Advanced filter UI provides multiple filter options to filter the data rows. The filter menu options are loaded based on advanced filter type by automatically detecting the underlying data type of the current column.
477
+
Below are the built-in filter types supported:
478
478
479
479
* **Text Filters** – Loads various menu options to filter the display text effectively.
480
480
* **Number Filters** – Loads various menu options to filter the numeric data.
@@ -509,13 +509,13 @@ Below are the built-in filter types supported.
509
509
510
510
#### Case sensitive filtering
511
511
512
-
The case sensitive filtering can be enabled for the column by using the casing icon available in the advanced filter UI. This is available only for `TextFilters` filter view. If the icon is active, the filtering will be applied with the case sensitive with the filter text. The casesensitive icon will be shown only to the stringtype columns.
512
+
Case-sensitive filtering can be enabled for the column using the casing icon available in the advanced filter UI. This is available only for the `TextFilters` filter view. If the icon is active, the filtering will be applied with the case sensitive with the filter text. The case-sensitive icon will be shown only to the string-type columns.
513
513
514
514

515
515
516
516
### Disable filtering for an individual column
517
517
518
-
The `GridColumn.allowFiltering` has higher priority than `SfDataGrid.allowFiltering` property. So, you can disable the filtering for any particular column by setting `GridColumn.allowFiltering` property to `false`.
518
+
The `GridColumn.allowFiltering` has a higher priority than the `SfDataGrid.allowFiltering` property. So, you can disable the filtering for any particular column by setting the `GridColumn.allowFiltering` property to `false`.
519
519
520
520
{% tabs %}
521
521
{% highlight Dart %}
@@ -575,7 +575,7 @@ The SfDataGrid provides the following callbacks to notify the filtering stages:
575
575
576
576
### OnFilterChanging callback
577
577
578
-
`onFilterChanging`callback invokes when the filtering is being appiled to the particular column through UI filtering. You can return `false` from this callback to restrict the column from being filtered.
578
+
`onFilterChanging`callback invokes when the filtering is being applied to the particular column through UI filtering. You can return `false` from this callback to restrict the column from being filtered.
`onFilterChanged`callback invokes after the filtering is appiled to the particular column through UI filtering. You can use this callback to get filter conditions.
639
+
`onFilterChanged`callback invokes after the filtering is applied to the particular column through UI filtering. You can use this callback to get filter conditions.
0 commit comments