Skip to content

yhxxlm/jqgrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

jqgrid

  • Base on JqGrid, easy Yii JqGrid extension

[Setup]:

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

[Usage]:

     <?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',
       )
   ))

   ?>

====

[See also]:

About

Base on JqGrid, easy extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages