-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Open
Copy link
Labels
BugC: GridFP: In DevelopmentSync status with associated Feedback ItemSync status with associated Feedback ItemS: Wrappers (ASP.NET Core)SEV: Low
Milestone
Description
Bug report
Setting a default filter operator through the global or column filterable configurations when using a TagHelper Grid is not possible.
Reproduction of the problem
- Set filter operators in the column filterable configuration.
- Open the column filter menu.
- The available filter operators are not ordered as per the order they are defined. When using HtmlHelper Grid, the first defined operator is the default one.
REPL samples for reproduction:
- TagHelper Grid: https://netcorerepl.telerik.com/QRudbabf43wlzGLI41
- HtmlHelper Grid: https://netcorerepl.telerik.com/cRknFOFz45YmD2q745
Expected/desired behavior
The first defined filter operator should be set as default in the column filter menu when using TagHelper Grid.
Workaround
<!-- Include the following script before the TagHelper grid declaration -->
<script>
kendo.ui.FilterMenu.fn.options.operators.string = {
contains: "Contains",
eq: "Is equal to",
neq: "Is not equal to"
}
</script>
Environment
- **Telerik UI for ASP.NET Core version: 2023.1.117
- **Browser: [all]
Metadata
Metadata
Assignees
Labels
BugC: GridFP: In DevelopmentSync status with associated Feedback ItemSync status with associated Feedback ItemS: Wrappers (ASP.NET Core)SEV: Low