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: knowledge-base/grid-custom-filter-menu.md
+24-16Lines changed: 24 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
-
title: How to Refresh Filter Menu Context After Programmatic Changes
2
+
title: How to Refresh Filter Menu After Programmatic Changes
3
3
description: Learn how to refresh filter menu context after programmatic changes with a custom component
4
4
type: how-to
5
-
page_title: How to Refresh Filter Menu Context After Programmatic Changes
5
+
page_title: How to Refresh Filter Menu After Programmatic Changes
6
6
slug: grid-kb-custom-filter-menu
7
-
tags: grid, blazor, custom, filter, filtermenu
7
+
tags: blazor, grid, filter, filtermenu
8
8
res_type: kb
9
9
ticketid: 1669381
10
10
---
@@ -21,20 +21,21 @@ ticketid: 1669381
21
21
22
22
## Description
23
23
24
-
When using the TelerikGrid in Blazor applications, it's common to implement custom `FilterMenu` for enhanced filtering capabilities. However, integrating an [AutoComplete]({%slug autocomplete-overview%}) component with `StringOperators` within a [`FilterMenuTemplate`]({%slug grid-templates-filter%}#filter-menu-template) for dynamic filtering based on user input does not work as expected. The AutoCompletecomponent does not consider the selection from the dropdown list of `StringOperators` within the `FilterMenuTemplate`.
24
+
When using the TelerikGrid in Blazor applications, it's common to implement a custom `FilterMenu` for enhanced filtering capabilities. However, integrating a Telerik UI for Blazor component that is responsible for the dynamic Grid filtering based on user input does not work as expected. For example, the [AutoComplete]({%slug autocomplete-overview%}) component does not consider the selection from the dropdown list of `StringOperators` within the [`FilterMenuTemplate`]({%slug grid-templates-filter%}#filter-menu-template).
25
25
26
26
This knowledge base article also answers the following questions:
27
27
- How to integrate AutoComplete with `StringOperators` in a TelerikGrid `FilterMenuTemplate`?
28
-
- How to refresh a custom `FilterMenuTemplate` in TelerikGrid?
29
-
- How to refresh a `FilterMenuTemplate`context after programmatic changes?
28
+
- How to refresh the contents of `FilterMenuTemplate` in a TelerikGrid?
29
+
- How to refresh a `FilterMenuTemplate` after programmatic changes?
30
30
31
31
## Solution
32
32
33
-
To achieve the desired behavior, encapsulate the content of the `FilterMenuTemplate` in a custom component and refresh this component upon selection change in the dropdown list. Below is an example demonstrating this approach:
33
+
To achieve the desired behavior, encapsulate the content of the `FilterMenuTemplate` in a separate Razor component and refresh this component upon selection change in the dropdown list. Below is an example demonstrating this approach:
34
34
35
35
<divclass="skip-repl"></div>
36
36
````Home.razor
37
37
@using Telerik.DataSource
38
+
38
39
<TelerikGrid Data="@Countries"
39
40
FilterMode="GridFilterMode.FilterMenu"
40
41
PageSize="25">
@@ -62,19 +63,19 @@ To achieve the desired behavior, encapsulate the content of the `FilterMenuTempl
0 commit comments