0
votes

I look at this example, this allows to search for all columns. How to I searrch for either two columns only? E.g. I want to search Name or Country? Is using api.getSelectedNodes() and filter, the best way to do the search?

https://www.ag-grid.com/example.php#/

1
Are you using any frameworks in particular? React, Angular? - wentjun
Hi @wentjun I'm using React framework - Brendon

1 Answers

2
votes

I would say the best solution would be to set an empty value for the search value for each of the columns you do not want to search through:

colDef = {
    getQuickFilterText: () => ''
}

Take a look at this questions.

More documentation can also be found here