Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
335
igDataSource filtering customFunc not working
posted

I am trying to filter my igGrid data based on a combination of nested AND and OR conditions. According to these old topics that is not supported by igGridFiltering:
https://www.infragistics.com/community/forums/f/ignite-ui-for-jquery/86638/filtering-multiple-columns
https://www.infragistics.com/community/forums/f/ignite-ui-for-jquery/76333/multiple-filters-on-single-column-and-boolean-logic

One of the proposed workarounds looks to be ideal, the customFunc setting on the datasource. Here it is in the latest documentation:

https://www.igniteui.com/help/api/2021.1/ig.datasource#options:settings.filtering.customFunc

However, this function does not seem to work. Adding a console.log shows that it is not being called at all.

Demo: http://jsfiddle.net/h0sfeb8g/10/

Any other suggestions on how to apply a complex filtering are also appreciated.

Thanks

Parents
  • 1320
    Offline posted

    Hello Ben,

    After investigating this further, I determined that your requirement could be achieved by using the customFunc of the datasource as suggested in one of the listed forum threads.

    I have created a small sample implementing this approach. Multiple conditions for one column are set with the logical operator “OR” and conditions for multiple columns are set with “AND”.

    Below I am attaching a sample demonstrating the described behavior. Please test it on your side and let me know if you need any further information regarding this matter.

    Regards,
    Monika Kirkova,
    Infragistics

    igGridCustomFilteringLogic.zip

Reply Children