<?php
Yii::app( )->clientScript->registerScript( 'gridFilter',"
$( function( ){
$( document ).off( 'change.yiiGridView' );
$( 'body' ).on( 'click','.filterGrid', function( ) {
$( '#loading-grid' ).yiiGridView( 'update', {
data: $( '#loading-grid .filters input, #loading-grid .filters select' ).serialize( )
} );
return false;
} );
} );
", CClientScript::POS_READY );
?>