This search in the module administration is actually metadata filtering. If you want to implement such functionality for your custom module, you would have to do two things.
First, populate the dropdown with the meta keys defined for your module in web.config. Then, when the Search button is clicked, you would have to insert a parameter in the querystring, indicating the filterexpression formed by the search query.
For example, if you search Generic Content items by Name for "test", the filter expression would look like Param=Name+LIKE+"test"
. You would have to include this in the querystring using the ParameterKey
property of ViewModeControl
, and then filter the content you bind to, according to this expression. Just call GetContent
method of your manager with the overload having a filterExpression
parameter. That's all there is to it.
If your view is inheriting from ContentItemView
, then it would be even easier, as the base provides methods and properties to do this automatically, you would just have to parse the query. Take a look at FilterExpression
the Telerik team