Yii Framework Forum: Set Empty Header In Cgridview - Yii Framework Forum

Jump to content

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

Set Empty Header In Cgridview Rate Topic: -----

#1 User is offline   Led 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 208
  • Joined: 16-January 12

Posted 19 April 2013 - 04:40 PM

how can i set empty header

array(
            'type' => 'raw',
            'name' => 'image',
            'header' => ' ',
            'label'=>'$data->estado_obra',
            'value' => 'CHtml::link(count($data->dispositivos),array("dispositivos/admin","idlocalizacao"=>$data->id_local))'
        ),


not working
0

#2 User is offline   artificial 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 96
  • Joined: 11-December 10
  • Location:Sydney, Australia

Posted 19 April 2013 - 08:50 PM

What do you mean it's not working? If you try to output an empty string as the header, Yii will instead output your CGridview instances blankDisplay property, which by default is  

So unless you overrode that, I'm not too sure what you mean by not working.
Alex Berriman
www.fishvision.com
0

#3 User is offline   Ghanshyam 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 18-March 13
  • Location:Ahmedabad

Posted 20 April 2013 - 12:00 AM

Hello,
Please check like, to set properties...
name and header both empty no any header display in grid.

'name' => '',
'header' => '',

0

#4 User is offline   Led 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 208
  • Joined: 16-January 12

Posted 21 April 2013 - 01:25 PM

View PostGhanshyam, on 20 April 2013 - 12:00 AM, said:

Hello,
Please check like, to set properties...
name and header both empty no any header display in grid.

'name' => '',
'header' => '',


thanks, i did it setting the atribute label.
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