auto-count-grid-view AutoCountGridView works together with AutoCountSqlDataProvider. It displays SQL tables with increased performance.

  1. Requirements
  2. Usage
  3. Resources

AutoCountGridView extends CGridView. It works together with AutoCountSqlDataProvider in order to browse large tables without first counting their rows, thus increasing performance.

Requirements

auto count sql data provider extension

Usage

$this->widget('application.extensions.AutoCountGridView', array(
    'dataProvider'=>new AutoCountSqlDataProvider(
        'tbl_user',
        new CDbCriteria(array('condition'=>'column1 is not null')),
        false,
        array(
            'sort'=>array(
                'attributes'=>array('column1','column2'),
            ),
            'pagination'=>array(
                'pageSize'=>10,
            ),
        )
    ),
    'filter'=>null,
    'columns'=>array('column1','column2'),
    'selectableRows'=>0,
    'template'=>"{summary}\n<div style='overflow:auto'>{items}</div>\n{pager}",
    'count_get_variable'=>'count',
));

Resources

2 0
3 followers
593 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags: gridview
Developed by: prekageo
Created on: Jul 21, 2011
Last updated: 7 years ago

Downloads

show all

Related Extensions