How to prevent searching Boolean columns on FlexGridSearch

Posted by: ozan.bilgic on 15 May 2023, 9:50 pm EST

    • Post Options:
    • Link

    Posted 15 May 2023, 9:50 pm EST

    I use FlexGridSearch on my react application, I can search cells without any problem. I have some columns that have boolean values. How can I prevent to search boolean values?

    https://www.grapecity.com/wijmo/demos/Grid/FilteringSearching/FlexGridSearch/react

  • Posted 16 May 2023, 4:00 pm EST

    Hi,

    You’ll have to override the default FlexGridSearch filter function and implement your custom filtering on flexGrid to achieve the desired results. You can refer to the following sample for its implementation - https://stackblitz.com/edit/react-k9kn7l?file=Hello.js

    Please make sure that the dataType property of the columns with a boolean value is set to ‘Boolean’, refer to line 70 in ‘Hello.js’ file in the above sample.

    In case, you face any issues please let us know.

    Regards

  • Posted 16 May 2023, 7:44 pm EST

    Hi, thank you.

  • Posted 17 May 2023, 7:39 pm EST

    Hi @nashparsons951, I am a little confused. Can you explain it once more? I didn’t understand how to implement it.

    Thanks.

  • Posted 21 May 2023, 5:50 pm EST

    Hi ozan.bilgic,

    The above response was spam which get you confused, we have removed it from this ticket. You can stick with Vivek’s solution which worked for you. In case you have any issues then please let us know.

    Regards

  • Posted 21 May 2023, 8:05 pm EST

    Thanks.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels