Cgridview + Ajax + Custom Filter Field Problem

I have this simple view:

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







			  'filter'=>CHtml::listData(Level::model()->findAll(), 'id', 'level'),),







                		{type: $(this).val(),

                		id_level2: $('[name=\"AppView[id_level2]\"] option:selected').val()} 






)); ?>

I’ve simplified the code maximally to show just the problem.

There are two columns: designation and level of it’s release. Third data is the type of designation, which is showed by colour (didn’t posted code, not important). So third data doesn’t have column, but it needs to be filtered too. I’ve placed the filter over the buttons, in header.

Now problem is, that after I change the level and than change the type, the level goes back to previous value!

I’ve tested in Firefox with Firebug - it shows new current value, but when refreshing the Grid with the type filter, $(’[name=\“AppView[id_level2]\”] option:selected’).val() previous value is taken from somewhere. Text input works fine, problem is only with select input.

Tried this with pure javascript also with IE - same results.

I’ll be thankful for help!