Hello.
I’m using cgridview and put textfield into few collumns so that i’ll able to edit the data on that collumns (directly on that page).
the question is: how to build a button to save all data from that textfield?
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'score-grid',
'dataProvider' => $model->search(),
'filter' => $model,
'columns' => array(
'id',
array(
'name'=>'subject_id',
'value'=>'GxHtml::valueEx($data->subject)',
'filter'=>GxHtml::listDataEx(Subject::model()->findAllAttributes(null, true)),
),
array(
'name' => 'score_id',
'filter' => CHtml::listData(BookScore::model()->findAll(), 'id', 'student_id'),
'value' => 'GxHtml::valueEx($data->rapor)',
),
array(
'name'=>'Score1',
'value'=> 'Chtml::textField(\'TestScore1\', $data->Score1, array(\'width\'=>20,\'maxlength\'=>3))',
'type'=>'raw',
'htmlOptions'=>array('width'=>'20px'),
),
array(
'name'=>'Score2',
'value'=> 'Chtml::textField(\'TestScore2\', $data->Score2, array(\'width\'=>20,\'maxlength\'=>3))',
'type'=>'raw',
'htmlOptions'=>array('width'=>'20px'),
),
array(
'name'=>'Score3',
'value'=> 'Chtml::textField(\'TestScore3\', $data->Score3, array(\'width\'=>20,\'maxlength\'=>3))',
'type'=>'raw',
'htmlOptions'=>array('width'=>'20px'),
),
array(
'class' => 'CButtonColumn',
'template'=>'{save}{delete}',
'buttons'=>array
(
'save' => array
(
'label'=>'save',
//i'd like to do save data from here
Thx