Datagrid custom filtering on function

I'm trying to figure out if its possible to use the Datagrid custom filter with a function that is part of an object.
So I have an object that has a list as part of the object and want to be able to filter where any item in this list contains some text, similar to:
public myclass{
text value1;
List listObjects;
....
}

I've created a function, that is part of the main object being displayed in the grid, called checkForText(string text) and it returns a bool. Looks a bit like:
checkForText(string value) => listObjects.Where(x => x.value.contains(string).Any ? true : false;

When I try creating a whereexpression of "checkForText({string}) eq true" or without the "eq true" at the end, it doesn't seem to filter anything. Is this possible currently using the custom filtering in the Datagrid?

This seems to be the OData filter expression syntax. It doesn't support custom functions. How is your data grid configured? If you are using OData then you can apply the filtering after getting the result from the service.

Thanks @korchev, I can implement it that way, was just checking that I wasn't missing an easy way to do it with the grid itself.
I'll write the filtering as custom code after the results have been received.
Thanks for the quick response