How To Pass Combobox Value To Controller Action In Cbuttoncolumn Of Cgridview

Hiii Guys …

          I my Admin.php in grid i have one field name status which contains dropdownlist.

And i have created 1 custom button.

when i click that custom button value of Status field should pass to controller action.

Until now i have done this:

Admin.php





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

	'id'=>'mstleave-grid',

	'dataProvider'=>$model->search(),

	'filter'=>$model,

        'selectableRows'=>2,

	'columns'=>array(

                 array(

                        'class'=>'CCheckBoxColumn',

                        'id'=>'chk',

                        

                ),

		'EmpID',

                'Name',

		'FromDate',

		'ToDate',

		'LeaveType',

		'Duration',

                array(

                        'id'=>'Status',

                        'name' => 'Status',

                        'type' => 'raw',

                        'value' => '$data->dayDropDown',

                    ),

		//'Remark',

		array(

			'class'=>'CButtonColumn',

                        'template' => '{view} {update} {delete} {save}',

                        'buttons'=>  array(

                                    'save' => array(

                                        'id'=>'save',

                                'label'=>'save', // text label of the button

                                'url'=>"CHtml::normalizeUrl(array('Save', 'id'=>\$data->EmpID))",

                                'imageUrl'=>Yii::app()->request->baseUrl.'/images/save.png',  // image URL of the button. If not set or false, a text link is used

                                'options' => array('class'=>'save'), // HTML options for the button

                                


                        ),


                            

                        ),

		),           

	),

)); ?>




5600

save.png

have look at this image.

so my question when i will change status field value and click on save button value of status field should pass to controller action.

Hi,

Your solution is here :)

http://www.yiiframework.com/wiki/658/update-cgridview-row-separately-using-ajax-request/