Public Member Functions | |
init () | |
registerCoreCss () | |
registerAssetCss ($cssFile, $media= '') | |
registerCoreJs () | |
registerJS ($jsFile, $position=CClientScript::POS_HEAD) | |
run () | |
getAssetsUrl () | |
Data Fields | |
$coreCss = true | |
$coreJs = true | |
$forceCopyAssets = true | |
$options = array() | |
$language = '' | |
$htmlOptions = array() | |
Protected Attributes | |
$_assetsUrl | |
Copyright: milkyway yhxxl Base on m@gm ail.c omhttp://trirand.com/blog/jqgrid/jqgrid.html Created on 2013-04-10
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:https://github.com/tonytomov/jqGrid
Definition at line 55 of file JqGrid.php.
getAssetsUrl | ( | ) |
Returns the URL to the published assets folder.
Definition at line 140 of file JqGrid.php.
init | ( | ) |
Definition at line 73 of file JqGrid.php.
registerAssetCss | ( | $cssFile, | |
$media = '' |
|||
) |
Registers a specific css in the asset's css folder
string | $cssFile | the css file name to register |
string | $media | the media that the CSS file should be applied to. If empty, it means all media types. |
Definition at line 97 of file JqGrid.php.
registerCoreCss | ( | ) |
Registers the jqgrid CSS.
Definition at line 88 of file JqGrid.php.
registerCoreJs | ( | ) |
Registers the jqgrid JS.
Definition at line 104 of file JqGrid.php.
registerJS | ( | $jsFile, | |
$position = CClientScript::POS_HEAD |
|||
) |
Registers the jqgrid JavaScript.
int | $position | the position of the JavaScript code. |
Definition at line 113 of file JqGrid.php.
run | ( | ) |
Definition at line 121 of file JqGrid.php.
|
protected |
Definition at line 71 of file JqGrid.php.
$coreCss = true |
Definition at line 57 of file JqGrid.php.
$coreJs = true |
Definition at line 58 of file JqGrid.php.
$forceCopyAssets = true |
Definition at line 59 of file JqGrid.php.
$htmlOptions = array() |
Definition at line 66 of file JqGrid.php.
$language = '' |
Definition at line 61 of file JqGrid.php.
$options = array() |
Definition at line 60 of file JqGrid.php.