Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

x-editable-yii 'select' Issue #110

Closed
kamran377 opened this issue Jun 9, 2014 · 2 comments
Closed

x-editable-yii 'select' Issue #110

kamran377 opened this issue Jun 9, 2014 · 2 comments
Assignees
Labels

Comments

@kamran377
Copy link

Hi:
I;m using the x-editable extension to provide inline-edit support in cgridview. The text inline edits are working fine but when i try to use the editable for a column that is referenced from another table. I'm using following code

array (
'name'=>'category_id', //
'value'=>'$data->category->name',
'filter'=>false,
'class' => 'editable.EditableColumn',
'editable' => array(
'type' => 'select',
'url' => 'updateName',
'model'=>$model,
'attribute'=>'category_id',
'apply'=>true
)
)

There are no errors on the console but the column does not converted to link (its not editable). I'm using Chrome and latest version of x-editable

image

@kamran377
Copy link
Author

here is my config file
'editable' => array(
'class' => 'editable.EditableConfig',
'form' => 'bootstrap', //form style: 'bootstrap', 'jqueryui', 'plain'
'mode' => 'inline', //mode: 'popup' or 'inline'
'defaults' => array( //default settings for all editable elements
'emptytext' => 'Click to edit'
)
),

@Julian-B90 Julian-B90 self-assigned this Jun 9, 2014
@Julian-B90
Copy link
Collaborator

have you add category_id to your rule in the model?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants