Mo

The pain with gridfield is that you probably can't use injector to swap the class automatically, so if you want to automatically add the new component to all GridFields automatically, you will have to add it via an Extension

Mo

Get the results from the parents and then perform your custom filter on that list

Mo

Possibly overwrite GridFieldFilterHeader::getManipulatedDate()

Mo

Um, I think you might have to make your over version of GridFieldFilterHeader

r3v3rb

It is and yes its for the search dropdown in a gridfield

Mo

Is the code you attached added via a DataExtension?

Mo

If you want it available in all gridfields, that is a bit trickier

Mo

So are you using the search in ModelAdmin? In which case this is the magnifying glass in the top right

r3v3rb

this is the searchform with magnifier in the gridfield header? or the modeladmin search sorry - mine is the gridfield search...

Mo

Ah, well then you can add a new search field to ModelAdmin::SearchForm()