Yii Framework Forum: Create Check All Box on Header - Yii Framework Forum

Jump to content

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

Create Check All Box on Header Rate Topic: -----

#1 User is offline   cloud3peace 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 22-October 10
  • Location:Jakarta, Indonesia

Posted 02 November 2010 - 12:14 AM

is there anyway to create check all box on header (CGridView)?

i use this code to make checkbox on CGridView

$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'viewlaporanpenjualan-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
        'summaryText'=>"",
	'columns'=>array(
                array(
                    'value'=>'CHtml::checkBox("cid[]",null,array("value"=>$data->id,"id"=>"cid_".$data->id))',
                    'type'=>'raw',
                    'htmlOptions'=>array('width'=>5),
                ),
                
		'id',
		'name',                
	),


thanks
0

#2 User is offline   zaccaria 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 2,232
  • Joined: 04-October 09
  • Location:Moscow

Posted 02 November 2010 - 04:26 AM

Take a look to CCheckBoxColumn
0

#3 User is offline   cloud3peace 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 22-October 10
  • Location:Jakarta, Indonesia

Posted 02 November 2010 - 11:26 PM

View Postzaccaria, on 02 November 2010 - 04:26 AM, said:

Take a look to CCheckBoxColumn


thanks for reply...

but i already got the solution.
just use JQuery to check all checkbox.
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