hello everyone!
This is a part of my CGridview:-
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'recordbook-grid',
'dataProvider'=>$model->search(),
//'filter'=>$model,
'summaryText' => 'Your Record book shows {start} - {end} of {count} number of records',
'columns'=>array(
//'recordBookId',
'date',
array(
'name'=>'grade',
'type'=>'raw',
'value'=>'CHtml::dropDownList(
"grade",$data->grade,array(Recordbook::model()->getGrades()),
array("empty"=>"Grade")
)',
'htmlOptions'=>array("width"=>"50px"),
'id'=>'grade_dropbox',
),
array(
'name'=>'class1',
'type'=>'raw',
'value'=>'CHtml::dropDownList("class1[$data->recordBookId",$data->work,array(Recordbook::model()->getClasses(6)),
array("empty"=>"Class")
)',
'htmlOptions'=>array("width"=>"50px"),
),
The first drop down lists’ result is to be passed onto the getClases method… how can I do this? i tried searching but so far no success…!
Thanks for your time!
Cheerz!