Yii Framework Forum: extending CButtonColumn - Yii Framework Forum

Jump to content

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

extending CButtonColumn Rate Topic: -----

#1 User is offline   dimis283 

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

Posted 23 February 2010 - 08:50 AM

I want to add some buttons to CButtonColumn.Is there a way with not trying to extend this class?
$this->widget('zii.widgets.grid.CGridView', array(
	'dataProvider'=>$dataProvider,
	'columns'=>array(
	...
	'art_code',
	array(	'class'=>'CButtonColumn',),	),));

Posted Image
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,359
  • Joined: 12-October 09
  • Location:Croatia

Posted 23 February 2010 - 08:57 AM

Take a look at the buttons property http://www.yiiframew...#buttons-detail
Find more about me.... btw. Do you know your WAN IP?
0

#3 User is offline   reload 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 26-February 10

Posted 26 February 2010 - 10:58 AM

Hello.. I'm new in this framework.. i'm liking it lol my english is not very good sorry..
well, i have a question:

in CButtonColumn how can i hide the view button?

Thanks for any help..
0

#4 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,359
  • Joined: 12-October 09
  • Location:Croatia

Posted 26 February 2010 - 12:05 PM

View Postreload, on 26 February 2010 - 10:58 AM, said:

in CButtonColumn how can i hide the view button?


Take a look at the template property: http://www.yiiframew...template-detail

you can set it without view... like

...
template='{update} {delete}',
...

Find more about me.... btw. Do you know your WAN IP?
1

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