'visible'=> '($data->type == 3)? true: false',
$myarray[] = array(
'class' => 'bootstrap.widgets.TbButtonColumn', //кнопка добавления данных
'template' => '{add}',
'visible'=> dep($data->type),
$myarray[] = array(
'class' => 'CButtonColumn', //кнопка
'template' => '{add}',
//'visible'=> $data->type == 3,
'buttons' => array(
'add' => array(//the name {reply} must be same
'label' => '+', // text label of the button
'url' => '$data->id."|".$data->name."|".$data->type',
'click' => 'function(){
data=$(this).attr("href").split("|")
if (data[2] == 3){
$("#myModalHeader").html(data[1]);
$("#myModalBody").load("' . $this->createUrl('analizCreate/modalcreate') . '/?id="+data[0]+"");
$("#myModal").modal();}
return false;
}',
////Your URL According to your wish
'options' => array(
'class' => 'btn btn-small btn-success' ,
),
),
),
'visible'=> '($data->type == 3)? true: false',
$myarray[] = array(
'class' => 'CButtonColumn', //кнопка
'template' => '{add}',
'buttons' => array(
'add' => array(//the name {reply} must be same
'label' => '+', // text label of the button
'visible'=> '$data->type == 3',
'url' => '$data->id."|".$data->name."|".$data->type',
'click' => 'function(){
data=$(this).attr("href").split("|")
if (data[2] == 3){
$("#myModalHeader").html(data[1]);
$("#myModalBody").load("' . $this->createUrl('analizCreate/modalcreate') . '/?id="+data[0]+"");
$("#myModal").modal();}
return false;
}',
////Your URL According to your wish
'options' => array(
'class' => 'btn btn-small btn-success' ,
),
),
),