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: components/grid/filtering.md
+69-4Lines changed: 69 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,15 +14,22 @@ The Grid component offers support for filtering.
14
14
15
15
To enable filtering, set the grid's `Filterable` property to `true`.
16
16
17
-
The grid will render a row below the column headers with UI that you can use to fill in the filter criteria. You can click outside of the filter to execute the default operator, or click a button to choose a different filter operator (like "contains", "greater than" and so on).
17
+
There are two filtering modes:
18
18
19
-
Once a filter is a applied to a column, a button will appear that lets you clear that filter.
19
+
*[`FilterRow`](#filter-row) (default) - a row of filter options is rendered below the column headers
20
+
*[`FilterMenu`](#filter-menu) - the column headers render a button that shows a popup with filtering options
20
21
21
-
The behavior of the filter header input and the available filter operators will depend on the column data type. For example, a boolean field will only have the options "is true" and "is false" and will not have operators like "contains" or "greater than".
22
+
The behavior of the filter input and the available filter operators will depend on the column data type. For example, a boolean field will only have the options "is true" and "is false" and will not have operators like "contains" or "greater than".
22
23
23
24
You can filter more than one column at a time, and all filter rules will be applied together with an `AND` logic.
24
25
25
-
>caption Enable Filtering in Telerik Grid
26
+
## Filter Row
27
+
28
+
The grid will render a row below the column headers with UI that you can use to fill in the filter criteria. You can click outside of the filter to execute the default operator, or click a button to choose a different filter operator (like "contains", "greater than" and so on).
29
+
30
+
Once a filter is a applied to a column, a button will appear that lets you clear that filter.
31
+
32
+
>caption Filter Row in Telerik Grid
26
33
27
34
````CSHTML
28
35
@using Telerik.Blazor.Components.Grid
@@ -73,6 +80,64 @@ You can filter more than one column at a time, and all filter rules will be appl
73
80
74
81

75
82
83
+
## Filter Menu
84
+
85
+
To use a filter menu, set the `FilterMode` property of the grid to `Telerik.Blazor.FilterMode.FilterMenu`.
86
+
87
+
The grid will render a button in the column header that you click to get a popup with filtering options. The popup lets you choose filter operator, filter criteria, to apply and clear the filter.
88
+
89
+
A key difference in the behavior is that the filter is now applied only upon a button click, not upon input change. This may improve performance if you use [manual CRUD operations]({%slug components/grid/manual-operations%}) by reducing the number of requests.
0 commit comments