how to use CEditableGridView??

I use like this


<?php

$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')

     )));

?>



but not work, next i use


<?php

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

     'dataProvider'=>$model,

     'columns'=>array(

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

     )));

?>

i find error, how to use it???

http://www.yiiframework.com/extension/editablegridview/

hi, nice post.and helped in many problems.and one more doubt how to add dropdown list instead of textfield where ever i want.please reply as soon as possible.

Use This Code.

$this->widget(‘ext.editgrid.CEditableGridView’, array(

 'dataProvider'=&gt;&#036;dataProvider,


 'showQuickBar'=&gt;'true',


 'quickCreateAction'=&gt;'QuickCreate', // will be actionQuickCreate()


 'columns'=&gt;array(


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


        array('header' =&gt; 'editMe', 'name' =&gt; 'editable_row', 'class' =&gt; 'CEditableColumn')


 ));

[color="#FF0000"]OR try this [/color]

$this->widget([color="#2E8B57"]‘ext.CEditableGridView’[/color], array(

 'dataProvider'=&gt;&#036;dataProvider,


 'showQuickBar'=&gt;'true',


 'quickCreateAction'=&gt;'QuickCreate', // will be actionQuickCreate()


 'columns'=&gt;array(


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


        array('header' =&gt; 'editMe', 'name' =&gt; 'editable_row', 'class' =&gt; 'CEditableColumn')


 ));