2017 © Pedro Peláez
 

yii2-extension yii2-jqgrid-widget

A powerful ajax-enabled grid widget for Yii2

image

apaoww/yii2-jqgrid-widget

A powerful ajax-enabled grid widget for Yii2

  • Wednesday, September 30, 2015
  • by apaoww
  • Repository
  • 1 Watchers
  • 0 Stars
  • 97 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 14 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

jqGrid Widget for Yii2

Yii2 wrapper for a powerful ajax-enabled grid free jqGrid jQuery plugin., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

  • Either run
php composer.phar require  "apaoww/yii2-jqgrid-widget" "dev-master"

or add, (*3)

"apaoww/yii2-jqgrid-widget" : "dev-master"

to the require section of your application's composer.json file., (*4)

  • Add action in the controller (optional), for example:
use apaoww\jqgrid\actions\JqGridActiveAction;

public function actions()
{
    return [
        'jqgrid' => [
            'class' => JqGridActiveAction::className(),
            'model' => Page::className(),
            'scope' => function ($query) {
                /** @var \yii\db\ActiveQuery $query */
                $query->select(['title', 'author', 'language']);
            },
        ],
    ];
}
  • View's example:
use apaoww\jqgrid\JqGridWidget;
use yii\helpers\Url;

= JqGridWidget::widget([
    'requestUrl' => Url::to('jqgrid'),
    'gridSettings' => [
        'colNames' => ['Title', 'Author', 'Language'],
        'colModel' => [
            ['name' => 'title', 'index' => 'title', 'editable' => true],
            ['name' => 'author', 'index' => 'author', 'editable' => true],
            ['name' => 'language', 'index' => 'language', 'editable' => true]
        ],
        'rowNum' => 15,
        'autowidth' => true,
        'height' => 'auto',
    ],
    'pagerSettings' => [
        'edit' => true,
        'add' => true,
        'del' => true,
        'search' => ['multipleSearch' => true]
    ],
    'enableFilterToolbar' => true,
]) ?>

The Versions

30/09 2015

dev-master

9999999-dev

A powerful ajax-enabled grid widget for Yii2

  Sources   Download

MIT

The Requires

 

yii2 ajax widget grid jqgrid

08/08 2015

1.1.10

1.1.10.0

A powerful ajax-enabled grid widget for Yii2

  Sources   Download

MIT

The Requires

 

yii2 ajax widget grid jqgrid

19/06 2015

1.1.9

1.1.9.0

A powerful ajax-enabled grid widget for Yii2

  Sources   Download

MIT

The Requires

 

yii2 ajax widget grid jqgrid

01/01 2015

1.0.8

1.0.8.0

A powerful ajax-enabled grid widget for Yii2

  Sources   Download

MIT

The Requires

 

yii2 ajax widget grid jqgrid