title: how to enable or disable editable option using x-editable in yii cgridview?
body: <p>My cgridview is </p>
  
  <pre><code>               'name'=&gt;'teamLeader_id', 
                  'class' =&gt; 'bootstrap.widgets.TbEditableColumn',
                  'headerHtmlOptions' =&gt; array('style' =&gt; 'width:180px'),
                  'editable' =&gt; array(
                      'type' =&gt; 'select',
                      'url' =&gt; Yii::app()-&gt;createUrl("employee/assignToTeamLeader"),
                      'source' =&gt; $usersList,
                      'enabled' =&gt;'$data-&gt;employeType == 1 ? false : true',
                      'success' =&gt; 'js: function(response) {
                          if(response.success == false){ 
                              console.log(response.message);
                              return response.message;
                          }
                      }',
                      'options' =&gt; array(
                      'ajaxOptions' =&gt; array('dataType' =&gt; 'json')
                      ),
                  )
  </code></pre>
  
  <p>My problem is that when I check condition in enabled param it does not work at all. I don't know why? Any help would be appreciate. Thanks.</p>