☝️Small business or a startup? See if you qualify for our special offer.
+

Disable individual filters

Answered
Nikita asked on April 4, 2025

Hi,

I am able to disable all filters with the showFilters option set to false but I want to disable/enable them for individual fields. I tried supplying filters.members = false for individual measures but it is not working. What else could I try?

6 answers

Public
Nikita April 4, 2025

I have also tried this and its not working, but in the mapping I don't include all of the columns on which we need to disable filters: https://www.flexmonster.com/question/how-to-disable-the-filter-option-for-particular-column-in-flat-table/?hilite=%22disable%22%2C%22filters%22

 

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster April 7, 2025

Hello,

Thank you for reaching out to us.

If you want to disable filters for specific fields, you need to explicitly define filters: false for each of those fields in the mapping. Since filters won’t be disabled by default, you have to specify this property for every column where the filter should be hidden. You are welcome to refer to the following example: https://jsfiddle.net/flexmonster/1bmr5ft6/.

Please let us know if other questions arise.

Best regards,
Nadia

Public
Nikita April 8, 2025

I did that but its still not working. Here is what mapping has:

...

And I still see filters there:

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster April 10, 2025

Hello,

Thank you for the details.

We recommend checking if the mapping is set correctly. For example, you can use the getReport API call after Flexmonster is initialized and check if the report.dataSource object contains the mapping with the necessary properties. Also, please modify the following JSFiddle to show us the described issue: https://jsfiddle.net/flexmonster/1bmr5ft6/. It would greatly help us.

Looking forward to hearing from you.

Kind regards,
Nadia

Public
Nikita April 11, 2025

I found a place where I am overriding the mapping accidentally. So, its fixed now.

Thank you!

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster 5 days ago

Hello,

Thank you for the feedback!

You are welcome to contact us if other questions arise.

Kind regards,
Nadia

Please login or Register to Submit Answer