telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.54k stars 1.91k forks source link

The column filter operators are not ordered correctly in TagHelper Grid #7259

Open mihaela-lukanova opened 1 year ago

mihaela-lukanova commented 1 year ago

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

1) Set filter operators in the column filterable configuration. 2) Open the column filter menu. 3) 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:

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

mihaela-lukanova commented 6 months ago

Reported again in TicketID: 1648257