CheckBox+Ajax в GridView


<script type="text/javascript">
    $(document).ready(function(){
        $("input[type=checkbox]").on('click',function(){
            setTimeout(function() {
                var keys = $.fn.yiiGridView.getChecked("file-grid","selectedIds").toString();
                var url = '<?php echo Yii::app()->createUrl('dispute/check') ?>';
                alert(url);
                //$.ajax({ url: url, type: 'GET', data: { check: keys }, success: function( data ) {
                    //ok
                //}});
            },300);
        });
    });
</script>


$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'file-grid',
    
	'columns'=>array(
        array(
            'id' => 'SelectedIds',
            'name' => "check",
            'class' => 'CCheckBoxColumn',
            'selectableRows' => 2,
            'value'=>'$data["file_id"]',
            'checked' => '(Yii::app()->inBasket($data["file_id"]))',
            //'visible'=>Yii::app()->user->check()
        ),
        ...
    )
    
);