Skip to content

Commit f3e1829

Browse files
chore(grid): plumbing and links for filter tremplates
1 parent 56aa921 commit f3e1829

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

components/grid/templates/filter.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,25 @@ The Filter Template lets you customize the appearance and logic of the built-in
1515

1616
There are two different templates you can use depending on the [Filter Mode]({%slug components/grid/filtering%}) that you use:
1717

18-
* Filter Menu
18+
<!-- Start Document Outline -->
19+
20+
* [Filter Menu](#filter-menu)
21+
* [Basic Template - Single Filter Operator](#basic-template---single-filter-operator)
22+
* [Add A Third Filter Operator](#add-a-third-filter-operator)
23+
* [Filter Row](#filter-row)
1924

20-
* Filter Row
25+
<!-- End Document Outline -->
2126

2227
## Filter Menu
2328

2429
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.
2530

2631
You can get started from the following examples:
2732

28-
<!-- Start Document Outline -->
29-
3033
* [Basic Template - Single Filter Operator](#basic-template---single-filter-operator)
3134
* [Add A Third Filter Operator](#add-a-third-filter-operator)
3235

3336

34-
3537
### Basic Template - Single Filter Operator
3638

3739
In the example below, you can see how to:
@@ -401,6 +403,11 @@ Comments in the code offer more insights into how all the features tie together.
401403

402404

403405

406+
## Filter Row
407+
408+
409+
410+
404411
## See Also
405412

406413
* [Live Demo: Grid Custom Filter](https://demos.telerik.com/blazor-ui/grid/custom-filter)

components/grid/templates/overview.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ The Grid component can use templates for:
2727

2828
* [group header]({%slug grid-templates-group-header%}) - the shared section that denotes each grid [group]({%slug components/grid/features/grouping%}).
2929

30+
* [filter]({%slug grid-templates-filter%}) - the content of the filter cell or filter menu where you can implement custom rendering and logic for the filters.
3031

31-
Like other Blazor content, they can receive a `context` argument that is the type of the model. To use templates, you must bind the grid to a named model.
32+
33+
34+
Like other Blazor content, most of them can receive a `context` argument that is the type of the model. To use templates, you must bind the grid to a named model. The filter templates are the exception as they are not related to rows and models.
3235

3336
You must make sure to provide valid HTML in the templates.
3437

0 commit comments

Comments
 (0)