I have grid
<?php $this->widget('bootstrap.widgets.TbGridView',array(
'id'=>'products-grid',
'htmlOptions'=>array('class'=>'grid-view table-striped',),
'dataProvider'=>$model->search(),
'columns'=>$columns,
)); ?>
$model->search()
return new CActiveDataProvider($this, array(
'criteria' => $criteria,
'pagination' => array('pageSize' => 50)
));
And I need to limit length of every column. For example, if column 1 has value
“Hello World”
and config variable for first column is 7, then I need to render
“Hello W…”
I think, that i can solve my problem with behaviours, am I right? Please, help me!
CDataColumn value option helps me