Custom column in CGridView with Button dropdowns's Twitter Bootstrap
问题 I just create Button dropdowns's Twitter Bootstrap for CGridView column. The button contains sub menus and each of them has attributes such as href, class, data- , etc.. which can set through dropdownMenuItems attribute in CGridView widget. In view $this->widget('zii.widgets.grid.CGridView', array( 'dataProvider'=>$dataProvider, 'ajaxUpdate'=>false, 'columns'=>array( array( 'name'=>'ID', 'type'=>'raw', 'value'=>'$data->ID', ), array( 'name'=>'NAME', 'type'=>'raw', 'value'=>'$data->NAME', ),