CGridView Dropdownfilter for compounded Fields

Hi everybody,

I have a Client Database with several flags for the client’s categories:




isDesigner | isDeveloper | isInstaller | ...



I have a CGridView with a column named "categories". It gets the content from a getter in the "Client" Model (getCategories).

This method checks whether the flag is 0 or 1, and if it’s 1 it puts together a string (e.g. “Designer, Developer” or “Installer”).

The Problem is now the filtering. It should be a dropdown. The dropdown in the gridview itself is easy. But how to do the search() parameters?

Thanks for any advice.