yii - Add class to textbox in CGridView -
as know in cgridview there textbox allows filter data. how add class textbox, like: <input type="text" class="">

taken the forum:
$this->widget('zii.widgets.grid.cgridview', array ( 'id'=>'your-grid', 'dataprovider'=>$model->search(), 'filter'=>$model, 'columns'=>array ( 'id', array ( 'name'=>'attr', 'filter'=>chtml::textfield('attr', '', array('class'=>'asdf')), ), .. ), ));
Comments
Post a Comment