Yii Framework Forum: Add Multiple Values To A Tbgridview Cell - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Add Multiple Values To A Tbgridview Cell Rate Topic: -----

#1 User is offline   jerr6sick6 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 05-September 13

Posted 09 September 2013 - 09:55 AM

hey I'm new in yii framwwork and Im trying to put two or more values to the same cell in the tbgridview, here is my code

array('value'=>'$data->dosis','header'=>'Dosis'),
array('value'=>'$data->frecuencia', 'header'=>'Frecuencia'),
array('value'=>'$data->via', 'header'=>'Via'),
array('value'=>'$data->duracion', 'header'=>'Duracion') ,...

I'm trying to do something like this
array('value'=>array('$data->duracion','$data->duracion2'), 'header'=>'Duracion')
but it doesn't work, any advice?? thanks for the help
0

#2 User is offline   yugene 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 513
  • Joined: 08-August 09

Posted 10 September 2013 - 04:55 AM

This wiki article describes how to render complex data in grid columns. Seems like what you need.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users