Yii Framework Forum: x-editable inside sub-grid of TbRelationalColumn not working - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

x-editable inside sub-grid of TbRelationalColumn not working

#1 User is offline   ammamon 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 15-September 13

Posted 25 November 2014 - 03:29 AM

x-editable inside sub-grid of TbRelationalColumn not working

I have in my parent grid view:

...
array
(
'name'=>'indent_no', 'header'=>'Indent No',
'headerHtmlOptions'=>array('style' =>'text-align: center;'),
'htmlOptions'=>array('style' =>'color: red;text-align: center;'),
'class'=>'bootstrap.widgets.TbRelationalColumn',
'url' => $this->createUrl('indent/view'),
'afterAjaxUpdate' => 'js:function(tr,rowid,data){ }',
'cacheData' => false,
'type'=>'raw',
),
...

And in the child-grid:

...
array
(
'class' => 'editable.EditableColumn',
'name'=> 'indented_item_status',
'sortable' => false,
'header'=>'Status',
'type'=>'raw',
'headerHtmlOptions'=>array('style' =>'text-align: center;'),
'editable' => array
(
'type' => 'select',
'url' => Yii::app()->createUrl('indent/block'),
'source'=> Editable::source(array('Blocked'=>'Blocked','Active'=>'Active')),
),
'htmlOptions'=> array('style' =>'text-align: center;')
),
...

But the field meant for editing is not becoming editable. It just displays the value retrieved from database.

However, x-editable is working at the parent-grid level.

Can someone please help?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users