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

'checklist' x-editable editable column #95

Closed
kgoddarddev opened this issue Feb 18, 2014 · 4 comments
Closed

'checklist' x-editable editable column #95

kgoddarddev opened this issue Feb 18, 2014 · 4 comments

Comments

@kgoddarddev
Copy link

http://www.yiiframework.com/forum/index.php/topic/51424-gridview-chtmllistdata/page__gopid__239235#entry239235

I have the bulk of the post in the yii forum, but maybe you can help me.

I am trying to use: x-editable editable column

I have a table cost_code_group_join which phase table to cost codes using the group join table and I list the cost codes in the checklist using editable column. I can list data, I can update data but it does not maintain what has been checked / unchecked nor does it maintain the list of those items in the column in which editable column resides.

array(
'class' => 'editable.EditableColumn',
'name' => 'cost_code_id',
'headerHtmlOptions' => array('style' => 'width: 100px'),
'editable' => array(
'type' => 'checklist',
'model'=> $dataProvider,
'url' => $this->createURL('UpdateCostCodeGroups',array('id'=>'phase_id')),
'placement' => 'right',
'source' => 'js:function() { return "'.$this->createUrl('rateNames/CostCodeSource',
array('id' => (('ID')).'".replace("ID", this.getAttribute("data-pk")); }',

    'onSave' => 'js: function(e, params) { alert("Saved value: " + params.newValue ); console.log(params);}'

)),

@kgoddarddev
Copy link
Author

I guess if there was a complete walk through for the checklist on yii cgridview editable column.

e.g.

List data
Submit to table
Update list of checked / unchecked
Maintain text result of checked items.

@ghost
Copy link

ghost commented Jun 29, 2014

were you able to get this ever? I've got all but the display in the table...

@kgoddarddev
Copy link
Author

No we created a checkbox list (HTML/PHP/Jquery) and moved on. But I would love to see this work.

@ghost
Copy link

ghost commented Jun 30, 2014

Did the same...it's a shame, I would love to have it going too, but too
much else going on to tackle something we already worked around.

On Mon, Jun 30, 2014 at 9:43 AM, Ken Goddard [email protected]
wrote:

No we created a checkbox list (HTML/PHP/Jquery) and moved on. But I would
love to see this work.


Reply to this email directly or view it on GitHub
#95 (comment)
.

Best Regards,
Mark Meadows
www.idncommunications.com
314.649.8246

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

No branches or pull requests

2 participants