ajax Checkbox + CGridView

Hi guys,

how to write a ajax check box option for user to select daily, weekend, monthly or others? A CGridView will generated a result based on the check option selected… Please give me some example to do so. =)


    <?php echo $form->labelEx($model, 'type'); ?>

    <?php echo $form->radioButtonList($model, 'type',$model->getTypeOptions())); ?>

    <?php echo $form->error($model, 'type'); ?>


    public function getTypeOptions()

    {

        return array(

            '0' => 'Daily',

            '1' => 'Weekly',

            '2' => 'Monthly',

            '3' => 'Quater',

            '4' => 'Yearly',

            '5' => 'By Category',

        );

    }

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

        'id' => 'detail-grid',

        'dataProvider' => $dataProvider,

        'columns' => array();



anyone got solve this problem before?? please help.