Hi
I searched the forum for displaying different elements on rows based on the $data->Id but mostly are through CButtonColumn "visible" attribute.
How to display different types other than buttons?
I want show this
Row 1 | image button
Row 2 | image button
Row 3 | dropdown list
Row 4 | image button
I did this but it is not showing the dropdown list
array(
'class'=>'CButtonColumn',
'template'=>'{showButton} {showDropdown}',
'buttons'=>array(
'showButton'=>array(
'visible'=>'$data->Id != ' . $id,
'label'=>'move',
'imageUrl'=>Yii::app()->request->baseUrl . '/images/list/move.gif',
'url'=>'Yii::app()->createUrl("product/", array("listAction" => "showMove", "id" =>$data->Id))',
),
'showDropdown'=>array(
'visible'=>'$data->Id == ' . $id,
'type'=>'raw',
'value'=>$strMyDropDownTreeInHtmlode,
),
),
'headerHtmlOptions'=>array("class"=>"grid-column-align-center", "width"=>"5px"),
),
Thanks