Any way to do global filter/search?

I want to be able to have one input field that filters as I type for the entire table. Like in the demo where you have an input field for each column that filters as you type but I want it for the entire table instead.

Is there a built-in feature for this? If not, what are my best options to do this?

Thanks.

Sorry @vtruong74

but we do not have an option like that built-in. However, I think that it will be possible by using a FOR loop for all the columns while using the addCondition method. After calling it remember to use filter method as well.

Tried using addConditions on all columns but it did not work. Instead, it removed all the rows, including the ones containing the seachQuery and the ones that did not. I think it’s because columns that did not satisfy the condition cancelled out all the ones that did.

  • Do you have any other suggestions?

  • I was thinking of using loadData, or trimRows, or hideRows, but I would have to maintain and keep track of the original data. Any tips there?

Thanks.

Hm… here is a demo that I’ve got some time ago http://jsfiddle.net/handsoncode/kz5zt63m/ it uses a cross-column logic for the last button (197-203 lines).