EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: gordis gmbh on December 05, 2018, 03:48:29 AM



Title: Datagrid filter doesn’t work
Post by: gordis gmbh on December 05, 2018, 03:48:29 AM
Hello,

We have upgraded to EasyUI version 1.6.10 with latest datagrid-filter.js.
We are getting the following problems:
  • Remote filter doesn’t work, we get „TypeError: op is undefined“. Please refer to the first attachment.
  • In Firefox, filter fields have different height. Please refer to the second attachment.

Thanks


Title: Re: Datagrid filter doesn’t work
Post by: jarry on December 05, 2018, 05:32:02 PM
This is the the datagrid example with remote filtering. It works fine.

https://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=material-teal&dir=ltr&pitem=Remote%20Filtering%20on%20DataGrid&sort=asc


Title: Re: Datagrid filter doesn’t work
Post by: gordis gmbh on December 07, 2018, 08:59:52 AM
We use customized filteroperator for remote filtering. Upto version 1.5.4.1 it was working without explicit decleration as operators.

In version 1.6.10 it works only when operators is extended:

Code:
$.extend($.fn.datagrid.defaults.operators, {
    myfilter: {
        text: 'myfilter',
        isMatch: function(source, value){
            return true;
        }
    }
});

The problem is solved!