How to control the columns in filter tool of AgGrid

By default, all columns in my grid appear in the filter tool. How can I restrict to only allow specific columns to be available for users to filter the grid by?

Hi @Vibhor_Batra,

Thanks for posting!

You can prevent one or more of your columns from having the filter option shown by passing false to the column definition property filter – check out this section of the ag-grid docs here.

Caroline :balloon:

That worked. Thank you.

Added filter = False to column configuration
gb.configure_column(“ALLOCATION”, type=[“numericColumn”,“numberColumnFilter”,“customNumericFormat”], precision=2, aggFunc=‘sum’, filter=False)

1 Like