Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/05/2013, 07:26
Avatar de NUCKLEAR
NUCKLEAR
Moderador radioactivo
 
Fecha de Ingreso: octubre-2005
Ubicación: Cordoba-Argentina
Mensajes: 5.688
Antigüedad: 18 años, 6 meses
Puntos: 890
Respuesta: Botones en algunos campos de un grid

Podes usar la propiedad visible:
Algo asi:

Código PHP:
Ver original
  1.    'class'=>'CButtonColumn',
  2.     'template' => '{update}',
  3.     'buttons' => array(
  4.     'update' => array(
  5.         'label' => 'Delete',
  6.     'visible' => '($data->id == 1 ) ? true : false',  //<< el condicional
  7.     ),
  8.     ),
  9. ),
__________________
Drupal Argentina