silcom-tree-grid-view CGridView as a tree

This extension provides a tree view in a CGridView.

I made it because i tried to use several from Yii extension for this purpose and none of them worked for me. Probably there are a few bugs.

Requirements

Yii 1.1 or above

Usage

Download extension from downloads and upload into the extensions folder

$this->widget('ext.SilcomTreeGridView.SilcomTreeGridView', array(
			    'id'=>'your-grid-id',
			    'treeViewOptions'=>array(
			    	'initialState'=>'collapsed',
			    	'expandable'=>true,
			    ),
			    'parentColumn'=>'parent_id',
			    'dataProvider'=>$dataProvider,
			    'columns'=>array(
                                     'id',
                                     'name',
                            )
		));

Resources

Using http://ludo.cubicphuse.nl/jquery-treetable/

Change Log September 29, 2014

Minor correction in function that order the nodes

September 02, 2014

Initial release.

2 0
5 followers
1 141 downloads
Yii Version: 1.1
License: MIT
Category: User Interface
Developed by: Bianchi
Created on: Sep 2, 2014
Last updated: 3 years ago

Downloads

show all

Related Extensions