Title: Datagrid client side filtering is not working Post by: rangaNadha on August 02, 2018, 01:50:19 AM Hi,
I tried to configure the client side filtering in Datagrid, it is giving the below exception. Current Datagrid configuration Code: table.datagrid({ Below exception I am getting with the existing datagrid-filters.js file Code: Uncaught TypeError: Cannot read property 'isMatch' of undefined I tried with the latest datagrid-filter.js from the below url, still i am getting the same exception http://www.jeasyui.com/extension/datagrid_filter.php Code: Uncaught TypeError: Cannot read property 'isMatch' of undefined Please help to fix this issue. Thanks, Pandu Ranga T. Title: Re: Datagrid client side filtering is not working Post by: rangaNadha on August 02, 2018, 02:24:58 AM I have debugged the code in chrome, actually by default the operator is "Contains" in the isMatch function it is comparing with the list of operators. It is failing there.
I have set the below properties to the datagrid configuration defaultFilterOperator: 'equal', defaultFilterType: 'textbox', It is working if the value matches in the rows, but I want to filter the data with "contains" only. Can anyone suggest what configuration I need to change? Title: Re: Datagrid client side filtering is not working Post by: lloyd on August 02, 2018, 07:03:20 AM Try setting:
filterMatchingType: 'any' There is no need to set defaultFilterType or defaultFilterOperator as the defaults are:- defaultFilterType: 'text' (not 'textbox') defaultFilterOperator: 'contains' Title: Re: Datagrid client side filtering is not working Post by: rangaNadha on August 02, 2018, 07:14:47 AM It's not working lloyd.
Title: Re: Datagrid client side filtering is not working Post by: stworthy on August 03, 2018, 12:03:37 AM Please look at this example http://code.reloado.com/uwimul3/edit#preview. It works fine.
|