Skip to content

Commit 75e42f4

Browse files
Merge pull request #383 from syncfusion-content/FLUT-6128-Filtering-support
FLUT-6128 - [Feature] Adapted the content review changes in the data grid filtering UG documentation
2 parents 0fb7fc6 + a16f087 commit 75e42f4

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Flutter/datagrid/filtering.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
layout: post
33
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.
55
platform: flutter
66
control: SfDataGrid
77
documentation: ug
88
---
99

1010
# Filtering in Flutter DataGrid (SfDataGrid)
1111

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

1414
## Programmatical Filtering
1515

1616
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`.
1717

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:
1919

2020
### Add filter
2121

@@ -212,7 +212,7 @@ Widget build(BuildContext context) {
212212

213213
The `FilterBehavior` property is used to specify whether filtering should consider the value of a cell as the string or its data type
214214

215-
* **stringDataType** - It converts the cell value as string data type and compare the condition.
215+
* **stringDataType** - It converts the cell value as string data type and compares the condition.
216216
* **strongDataType** - It compares the cell value with its actual data type.
217217

218218
{% tabs %}
@@ -285,8 +285,8 @@ Widget build(BuildContext context) {
285285

286286
The `FilterOperator` property is used to decide how a logical operator is to be applied between multiple filter conditions.
287287

288-
* **and** - `AND` logical operator applies between multiple filter conditions
289-
* **or** - `OR` logical operator applies between multiple filter conditions
288+
* **and** - `AND` logical operator applies between multiple filter conditions.
289+
* **or** - `OR` logical operator applies between multiple filter conditions.
290290

291291
{% tabs %}
292292
{% highlight Dart %}
@@ -448,11 +448,11 @@ After filtering, the rows can be retrieved in the same order as displayed in the
448448

449449
## UI Filtering
450450

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

453-
The `SfDataGrid` provides the following types of filter popup modes,
453+
The `SfDataGrid` provides the following types of filter popup modes:
454454

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.
456456
* **Advanced Filter** - Provides advanced filter options to filter the data with multiple conditions.
457457

458458
![Flutter datagrid shows a checkbox filter in web platform](images/filtering/flutter-datagrid-checkbox-filter-view.png)
@@ -473,8 +473,8 @@ The Checkbox filtering is like the Excel-like filter popup that shows the checke
473473

474474
### Advanced filtering
475475

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:
478478

479479
* **Text Filters** – Loads various menu options to filter the display text effectively.
480480
* **Number Filters** – Loads various menu options to filter the numeric data.
@@ -509,13 +509,13 @@ Below are the built-in filter types supported.
509509

510510
#### Case sensitive filtering
511511

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 case sensitive icon will be shown only to the string type 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.
513513

514514
![Flutter datagrid shows the case sensitive icon](images/filtering/flutter-datagrid-casesensitive-filtering.png)
515515

516516
### Disable filtering for an individual column
517517

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`.
519519

520520
{% tabs %}
521521
{% highlight Dart %}
@@ -575,7 +575,7 @@ The SfDataGrid provides the following callbacks to notify the filtering stages:
575575

576576
### OnFilterChanging callback
577577

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

580580
{% tabs %}
581581
{% highlight Dart %}
@@ -636,7 +636,7 @@ Widget build(BuildContext context) {
636636

637637
### OnFilterChanged callback
638638

639-
`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.
640640

641641
{% tabs %}
642642
{% highlight Dart %}

0 commit comments

Comments
 (0)