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...
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, ), ),
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.