My cgridview
'name'=>'teamLeader_id',
'class' => 'bootstrap.widgets.TbEditableColumn',
'headerHtmlOptions' => array('style' => 'width:180px'),
'editable' => array(
'type' => 'select',
'url' => Yii::app()->createUrl("employee/assignToTeamLeader"),
'source' => $usersList,
'enabled' =>'$data->employeType == 1 ? false : true',
'success' => 'js: function(response) {
if(response.success == false){
console.log(response.message);
return response.message;
}
}',
'options' => array(
'ajaxOptions' => array('dataType' => 'json')
),
)
My problem is that when I check the condition in the included parameter, it does not work at all. I do not know why? Any help would be appreciated. Thanks.
source
share