Cgridview's Dropdownlist Column Lost Event Binding After Page Change

HI,

I created a dropdownlist column for Cgridview. also binded some event as following


Yii::app()->clientScript->registerScript('search',

" 

$('.status_select').change(function() {


			alert($(this).attr('id'));

});


");

The problem is the event only triggers on the first page of the gridview…

Please help. thanks

You must register your js code again in your grid’s afterAjaxUpdate property.

http://www.yiiframework.com/doc/api/1.1/CGridView#afterAjaxUpdate-detail