Question

I have a CGridView un yii, but I want to update the records like phpmyadmin (click or double click in the cell the when hit enter update in the database)

i.e

| id | name  | fk_id
+----+-------+-------
| 1  | name1 | 10
+----+-------+-------
| 2  | name2 | 12
+----+-------+-------
| 3  | name3 | 9
Was it helpful?

Solution

CGridView is not editable by default, you can just Use this extension and save yourself from re-inventing the wheel.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top