Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a text column filter? #276

Open
rafael-declarecripto opened this issue Jun 5, 2024 · 1 comment
Open

Is there a text column filter? #276

rafael-declarecripto opened this issue Jun 5, 2024 · 1 comment

Comments

@rafael-declarecripto
Copy link

Hi.
Is it possible to filter a text column?
It is very common tables displaying text and eventually data such as type, category, status (enums).

{ "headerName":"country", "field":"country", "type":[ "textColumn", "textColumnFilter" ] }

I found only how to filter numeric colums. Ex.:

{ "headerName":"age", "field":"age", "type":[ "numericColumn", "numberColumnFilter" ] }

@roddym
Copy link

roddym commented Jun 5, 2024

This sort of construct worked for me (to enable text filtering on my column called Suffix)

        gb = GridOptionsBuilder.from_dataframe(samplesdf)
        gb.configure_default_column()
        gb.configure_column("Suffix", filter="agTextColumnFilter")
        agdata = AgGrid(samplesdf, gridOptions=gb.build())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants