I use yii and Yii Booster.
I want to truncate text displayed in a TbEditableColumn. I have extended CFormatter as described here: .
In order to truncate text I set in my column definition attribute 'type' to array('type'=>'shortText', length=>20)
//gridview
'columns'=>array(
array(
'type' => array(
'type' => 'shortText',
'length' => 10
),
),
)
It works fine in columns that are NOT editable. It doesn't work when I set:
'class' => 'bootstrap.widgets.TbEditableColumn'
Any idea how to make it work with TbEdiableColumn?