I have already wrote how to implement paging toolbar with filtering feature. Here I will show how to implement filter in form of plugin to use it with any toolbar of the grid.

Of course your toolbar can already have other GUI elements so I have implemented it with support of the placeholders. In the following sample I have a grid reload button and two filter elements: menu button and filter text field will be place after it in between delimiters.

And I am not forgetting the initialization of the plugin:

The plugin code: