How is it possible, to make the columns in CGridView editable? i searched and find several extensions, but nothing works for me. i'm doing something wrong or the extensions are buggy, i don't know.

can anyone help me please, and describe exactly, what i have to do, to make my columns in CGridView editable?

有帮助吗?

解决方案

Yii-booster extension has class TbEditableColumn that implements column edit feature. You can look example here. There is my example of code:

    array(
        'class' => 'YbEditableColumn',
        'name' => 'priority',
        'value' => '$data->priorityName',
        'sortable' => false,
        'editable' => array(
            'type' => 'select',
            'source' => Task::model()->getPriorities(),
            'url' => $this->createUrl('update'),
            'placement' => 'top',
        )
    ),

There is other extensions based on bootstrap Editable, like this, may be you can check it too.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top