Yii 1.1: jquery-grid

Base on JqGrid, easy yii extension
10 followers

overview

base on jqGrid 4.4.4, more powerful

Requirements

requirements of using this extension (e.g. Yii 1.1 or above)...

Usage

how to use this extension...

This extension have to be installed into: Yii-Application/proected/extensions/jqgrid

can use code blocks like the following...

<?php 
      $this->widget('ext.jqgrid.JqGrid', array(
       'id'=>'demo',
       'language'=>'cn',
       'options'=>array(
           'treeGrid'=>'true',
           'treeGridModel'=>'adjacency',
           'ExpandColumn'=>'name',
           'rowNum'=>'-1',
           'url'=>'/path/to/grid.json',
           'datatype'=>'json',
           'treedatatype'=>'json',
           'treeIcons'=>array(
               'plus'=>'icon-plus',
               'minus'=>'icon-minus',
               'leaf'=>'icon-cancel',               
           ),
           'mtype'=>'POST',
           'ExpandColClick'=>'true',
           'colNames'=>array('id', 'name'),
           'colModel'=>array(
               array(
                   'name'=>'id',
                   'index'=>'id',
                   'width'=>'100',
                   'hidden'=>false,
                   'key'=>true,
                   ),
               array(
                   'name'=>'name',
                   'index'=>'name',
                   'width'=>'300',
                   'sortable'=>false,
               ),
               ),
           'height'=>'auto',
           'caption'=>'View Groups',
       )
   ))
 
   ?>

Docs

Resources

external resources for this extension...

Total 1 comment

#16278 report it
JbalTero at 2014/02/05 09:05am
colModel using Model Generated by Gii

How Do I implement Model Generated by Gii instead of using array like,

'colModel'=>array(
               array(
                   'name'=>'id',
                   'index'=>'id',
                   'width'=>'100',
                   'hidden'=>false,
                   'key'=>true,
                   ),
               ),

Leave a comment

Please to leave your comment.

Create extension
Downloads