Posted 10 September 2024, 7:05 am EST
We are currently implementing wijmo grid with filter. now we have requirement where we need to show filter icon disable ( not hide ) for some operations. Is there any way we can achieve this ?
Forums Home / ComponentOne / General Discussion
Posted by: bhaumik.shah on 10 September 2024, 7:05 am EST
Posted 10 September 2024, 7:05 am EST
We are currently implementing wijmo grid with filter. now we have requirement where we need to show filter icon disable ( not hide ) for some operations. Is there any way we can achieve this ?
Posted 11 September 2024, 8:51 am EST
Hi Bhaumik,
Please try to post Wijmo related cases on Wijmo forums page, as there is a possibility that cases posted on the wrong forums can be missed and remain unanswered. Here’s the link for Wijmo forums for your reference - https://developer.mescius.com/forums/wijmo
If you want to hide the filter icons for some columns or all columns then you can do so by setting the ‘filterColumns’ property of the FlexGridFilter, and if you do not want to hide the filter icon just want to make it look disabled and non-interactable then you can handle the ‘formatItem’ event to a custom CSS class on the required header cells and cancel pointer events through CSS.
Please refer to the following sample demonstrating the same - https://jscodemine.mescius.io/share/FrgwZhUP8EyAryk5itHPYw/
In case, you face any issues, please let us know.
Regards
Posted 18 September 2024, 2:52 am EST
Thank you for the solution.