CGridView search on pageload

Hello, I have a CGridView with search-functionality, some of the search-fields have predefiend values but I need to click the search-button for the searchcondition to take place. How can I make yii search with the predefiend formvalues on pageload?

Can you not just populate the filter model with the default values when $_POST is not set?

Edit:

Or when $_GET[‘FilterModel’] is not set, given that you’re probably passing the filters in the query string.

Didn’t think of that, but works :D Thanks!