Editablegridview

I want to do the EditableGridView for a model.

I’ve followed the instructions to plugin from here

Just uploaded the files into ‘/protected/extentions’ folder and inserted:




$this->widget('zii.widgets.grid.CEditableGridView', array(

     'dataProvider'=>$dataProvider,

     'showQuickBar'=>'true',

     'quickCreateAction'=>'QuickCreate', // will be actionQuickCreate()

     'columns'=>array(

           'title',          // display the 'title' attribute

            array('header' => 'editMe', 'name' => 'editable_row', 'class' => 'CEditableColumn')

     ));

When i run it the : ‘Alias “zii.widgets.grid.CEditableGridView” is not valid’ CException is on.

What’s wrong? Do i need to add more into /congig/main.php as i did with x-editable ‘EditableDetailView’ yo plug it in?

[color="#222222"][font="Arial, sans-serif"][size="2"]If you followed the installation instructions and put the class file in the extensions directory, then this should be:[/size][/font][/color]

[color="#222222"][font="Arial, sans-serif"][size="2"]


$this->widget('zii.widgets.grid.CEditableGridView', array(

 'dataProvider'=>$perfreviewsub->searchbyparent($model->performancereviewid),

 'showQuickBar'=>'true',

 'quickCreateAction'=>'QuickCreate', // will be actionQuickCreate()

 'columns'=>array(

   	'standardname',

   	'elementname',

   	array('header' => 'ratingid', 'name' => 'ratingid', 'class' => 'CEditableColumn'),

 )));

[/size][/font][/color]

[color="#222222"][font="Arial, sans-serif"][size="2"]instead created an editableGrid subdirectory (of the extensions directory) for the class files. This requires changing the example code to:[/size][/font][/color]

[color="#222222"][font="Arial, sans-serif"][size="2"]


$this->widget('ext.editableGrid.CEditableGridView', array(

'dataProvider'=>$dataProvider,

'showQuickBar'=>'true',

 'quickCreateAction'=>'QuickCreate', // will be actionQuickCreate()

 'columns'=>array(

 'title',          // display the 'title' attribute

 array('header' => 'editMe', 'name' => 'editable_row', 'class' => 'ext.editableGrid.CEditableColumn')

 ));



[/size][/font][/color]