Grid Filter Question

Hi Folks, I’m hoping someone here can help with the following. I need to set up a filter on a grid with five columns. I would like the filter to work on all columns (1 - 5). I can get a filter to work fine with just one column using grid.filterBy(col, filter), but when I try the following:

grid.filterBy(1, “some text”)
grid.filterBy(2, “some text”)
grid.filterBy(3, “some text”)
grid.filterBy(4, “some text”)
grid.filterBy(5, “some text”)

I get the error: Uncaught TypeError: Cannot read property ‘_cellType’ of undefined

Is there some way to do this? I tried testing the return value from the filter working my way through all the columns, but that didn’t work either.

Any help would be much appreciated.

Thanks,

Daryl

The column index is a zero-based variable.
Please, try to use:
grid.filterBy(0, “some text”)
grid.filterBy(1, “some text”)
grid.filterBy(2, “some text”)
grid.filterBy(3, “some text”)
grid.filterBy(4, “some text”)