@@ -57,29 +57,29 @@ For example, try filtering with a Min value of 50+ to leave only root-level item
57
57
<TreeListColumns>
58
58
<TreeListColumn Field="Name" Expandable="true" Width="320px" Filterable="false" />
59
59
<TreeListColumn Field="Id" Filterable="false" Width="100px" />
60
- <TreeListColumn Field="Age" Width="350px">
61
- <FilterCellTemplate>
62
- @{
63
- // we store a reference to the filter context to use in the business logic
64
- // you can also use it inline in the template, like with the Clear button below
65
- AgeFilterContext = context;
66
- }
67
-
68
- <label for="min">Min: </label>
69
- <TelerikNumericTextBox Id="min"
70
- @bind-Value="@MinValue"
71
- OnChange="@SetupFilterRule">
72
- </TelerikNumericTextBox>
73
- <label for="min">Max: </label>
74
- <TelerikNumericTextBox Id="max"
75
- @bind-Value="@MaxValue"
76
- OnChange="@SetupFilterRule">
77
- </TelerikNumericTextBox>
78
- <TelerikButton ButtonType="ButtonType.Button"
79
- Class="k-clear-button-visible ml-2"
80
- Icon=FontIcon.FilterClear
81
- Enabled="@( MinValue != null || MaxValue != null )"
82
- OnClick="@(async () =>
60
+ <TreeListColumn Field="Age" Width="350px">
61
+ <FilterCellTemplate>
62
+ @{
63
+ // we store a reference to the filter context to use in the business logic
64
+ // you can also use it inline in the template, like with the Clear button below
65
+ theFilterContext = context;
66
+ }
67
+
68
+ <label for="min">Min: </label>
69
+ <TelerikNumericTextBox Id="min"
70
+ @bind-Value="@MinValue"
71
+ OnChange="@SetupFilterRule">
72
+ </TelerikNumericTextBox>
73
+ <label for="min">Max: </label>
74
+ <TelerikNumericTextBox Id="max"
75
+ @bind-Value="@MaxValue"
76
+ OnChange="@SetupFilterRule">
77
+ </TelerikNumericTextBox>
78
+ <TelerikButton ButtonType="ButtonType.Button"
79
+ Class="k-clear-button-visible ml-2"
80
+ Icon=FontIcon.FilterClear
81
+ Enabled="@( MinValue != null || MaxValue != null )"
82
+ OnClick="@(async () =>
83
83
{
84
84
MinValue = MaxValue = null;
85
85
0 commit comments