How to use a filter in gridView if data comes from ArrayDataProvider?

I am just creating a new app and use yii2.

For another app I remember that I could use something like explained here for yii-1:

FilterForm

Does anybody have experience how to do this with yii-2 ?

Please note: The data does not come from a model, so I can not use the default modelSeach for filtering.

I have to use the ArrayDataProvider.

Any help highly appreciated.

gb5256

Please post your code, there is not enough information here.

I want to achieve this with yii-2:

see http://www.yiiframework.com/wiki/232/using-filters-with-cgridview-and-carraydataprovider/