Cgridview Update column

Hello,

I would like to add "update" button next to each header in the grid.

Click, this button will show the field to update all the rows.


$this->widget('bootstrap.widgets.TbGridView', array(

    'id' => 'savedtemp-grid',

    'dataProvider' => $dataProvider,

    

    'columns' => array(

         array('name' => 'row_number', 'header' => 'Row', 'type' => 'raw', 'value' => '$this->grid->controller->bsTbBadgeWidget(\'info\',$data->row_number)'),

     

       'indicator_text_name',

      .....

        'scale_text_name',

....

Thank you!

Hi,

Please refer this link it could help you to do that . http://www.yiiframework.com/wiki/593/yii-cgridview-add-custom-button/