Yii Framework Forum: CGridView and button tiitle - Yii Framework Forum

Jump to content

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

CGridView and button tiitle Rate Topic: -----

#1 User is offline   dimis283 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 277
  • Joined: 24-January 09

Posted 15 March 2010 - 03:44 AM

I created a CGridView for categories and with the column with "view", "update" and "delete" buttons I add a column related with articles edit buttons (add article etc) extending the CButtonColumn class.
I want to give at these columns of the table a name, it is possible?
$this->widget('zii.widgets.grid.CGridView', array(
        'dataProvider'=>$dataProvider,
        'columns'=>array(
                'cat_code',
                'cat_name',                
		.......
                array(
                        'class'=>'zii.widgets.grid.CButtonColumn',
                ),
             array(
                         'class'=>'application.components.ButtonColumn',
                ),

Posted Image
0

#2 User is offline   jsoo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 01-March 10
  • Location:Durham, NC, USA

Posted 15 March 2010 - 06:48 AM

View Postdimis283, on 15 March 2010 - 03:44 AM, said:

I created a CGridView for categories and with the column with "view", "update" and "delete" buttons I add a column related with articles edit buttons (add article etc) extending the CButtonColumn class.
I want to give at these columns of the table a name, it is possible?


array(
    'class'=>'CButtonColumn',
    'header'=>'Column Name',
),

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