i did every thing as mention in the x-editable site ( i'm using EditableColumn, here's the link http://x-editable.demopage.ru/?r=site/widgets#EditableField)
i can't update my db, can any one tell me how to call actionupdate with passing the primary key
$this->widget('bootstrap.widgets.TbGridView', array(
'id' => 'user-grid',
'itemsCssClass' => 'table table-striped table-bordered table-condensed',
'dataProvider' => $model->search(),
'columns'=>array(
'student_id',
array(
'class' => 'editable.EditableColumn',
'id' =>'student_name',
'name' => 'student_name',
'headerHtmlOptions' => array('style' => 'width: 110px'),
'editable' => array( //editable section
'apply' => '$data->student_id', //can't edit deleted users
'url' => $this->createUrl('StudentTable/Update'),
'placement' => 'left',
)
),));
in actionupdate we need to pass edited value id please tell me,how to pass parameter to actionupdate in 'url' => $this->createUrl('StudentTable/Update'),
I did it like this:
And my update action
I placed my update action in the main controller and then it was reusable on all my grids this way.