Add Additional Parameter In Cgridview Filter


I want to add an additional parameter in the filter of CGridview. I can add additional parameters while using the following jquery code to update the grid.

$(’#purchase-grid’).yiiGridView(‘update’, {data: {‘Purchase[id]’:10}});

But how can I add it in the default search. Please help.

I am using two forms with different models on the same page of the grid.First model is BulkPropertyDetails and second one is PropertyDetails. The gridview is using PropertyDetails model for filtering. So while filtering instead of PropertyDetails[id] BulkPropertyDetails[id] is passed as parameter in the url. All the other fields that are displayed in the CGridview are correctly passed.