checkboxprevnextcheckall Check All previous or next Checkbox in GridView

  1. Requirements
  2. Instalation
  3. Usage
  4. Resources

Check All previous or next Checkbox in GridView

Requirements

Yii 1.1 +

Instalation

Extract the .zip file in your extension folder and enjoy

Usage

$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider'=>$dataProvider,
    'columns'=>array(
        array(
            'id'=>'{NAME}',
            'class'=>'ext.checkBoxPrevNextColumn.CheckBoxPrevNextColumn',
            'orientation'=>'nextAll' //optional - default is prevAll
         ),
        'title',          // display the 'title' attribute
        'category.name',  // display the 'name' attribute of the 'category' relation
        'content:html',   // display the 'content' attribute as purified HTML
        array(            // display 'create_time' using an expression
            'name'=>'create_time',
            'value'=>'date("M j, Y", $data->create_time)',
        ),
        array(            // display 'author.username' using an expression
            'name'=>'authorName',
            'value'=>'$data->author->username',
        ),
        array(            // display a column with "view", "update" and "delete" buttons
            'class'=>'CButtonColumn',
        ),
    ),
));

Resources

0 0
1 follower
240 downloads
Yii Version: Unknown
License: GPL-2.0
Category: Others
Developed by: Vinny.freire
Created on: Jan 15, 2014
Last updated: 10 years ago

Downloads

show all

Related Extensions