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/templates/filter.md
+267-2Lines changed: 267 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,18 @@ There are two different templates you can use depending on the [Filter Mode]({%s
21
21
22
22
## Filter Menu
23
23
24
-
By default, the filter menu contains two filter values that are tied with a logical operator - OR or AND. The filter template for it (`<FilterMenuTemplate>` under the corresponding `<GridColumn>`) provides you with the default composite filter in its `context`, and the `Filter` and `Clear` buttons below the template.
24
+
By default, the filter menu contains two filter values that are tied with a logical operator - OR or AND. The filter template for it (`<FilterMenuTemplate>` under the corresponding `<GridColumn>`) provides you with the default composite filter in the `FilterDescriptor` field of its `context`, and the `Filter` and `Clear` buttons below the template.
25
+
26
+
You can get started from the following examples:
27
+
28
+
<!-- Start Document Outline -->
29
+
30
+
*[Basic Template - Single Filter Operator](#basic-template---single-filter-operator)
31
+
*[Add A Third Filter Operator](#add-a-third-filter-operator)
32
+
33
+
34
+
35
+
### Basic Template - Single Filter Operator
25
36
26
37
In the example below, you can see how to:
27
38
@@ -32,7 +43,7 @@ In the example below, you can see how to:
32
43
33
44
Comments in the code offer more insights into how all the features tie together.
34
45
35
-
>caption Customize Filter Menu operators and value area
46
+
>caption Customize Filter Menu operators and value area to use only one operator
36
47
37
48
````CSHTML
38
49
@using Telerik.DataSource
@@ -135,6 +146,260 @@ Comments in the code offer more insights into how all the features tie together.
135
146
136
147

137
148
149
+
### Add A Third Filter Operator
150
+
151
+
In the example below, you can see how to:
152
+
153
+
* mimic the default behavior (by implementing the default functionality)
154
+
* add a third operator (by adding another instance of the filter operator editor)
155
+
* provide custom filter operators lists and texts (through the data sources of the custom dropdowns)
156
+
157
+
Comments in the code offer more insights into how all the features tie together.
0 commit comments