Small Problem With Dropdown Filters In Cgridview

I have a very simple cgridview with 2 columns. First column uses a textbox filter, second one uses a dropdown.




$this->widget('zii.widgets.grid.CGridView', array(

    'id' => 'grid',

    'dataProvider' => $model->search(),

    'filter' => $model,

    'columns' => array(

        'col1',

        array(

            'name' => 'col2',

            'value' => '$data->col2',

            'filter' => array(

                'bar' => 'bar',


            ),

        ),

    ),

));



If I search for “foo” on the first column, the grid filters perfectly looking for instances of foo. Now when I try using the dropdown filter on the 2nd column to look for “bar” afterwards, the dropdown doesn’t trigger the grid’s ajax update. It will trigger though when I try the dropdown again looking for another option. This problem seems to only happen when I first do a search on a textfield filter before moving to any dropdown filter in the grid. It doesn’t happen the other way around (doing a dropdown first them another dropdown). It also doesn’t break when I sort a column first them search using a dropdown.

Any clues on what’s going on?