php - CGridView Filter doesn't work when you add more than one button to the CButtonColumn -


i have cgridview follows,

<?php $this->widget('zii.widgets.grid.cgridview', array( 'id'=>'order-grid', 'dataprovider'=>$model->search(), 'filter'=>$model, 'columns'=>array(     'order_id',     //'ordered_datetime',     'customer_id',     'status',     //'delivery_address',     array(         'class'=>'cbuttoncolumn',         'template' => '{view} {rollback} {receive}{pack} {dispatch}{delivered}',         'htmloptions'=>array('width'=>'250px'),         'buttons'=>array(             'receive'=>array(                 'id'=>'receive',                 'name'=>'receive',                 'url'=>'$this->grid->controller->createurl("/shop/order/admin&received=true", array("id"=>$data->order_id,"asdialog"=>1,"gridid"=>$this->grid->id))',                 'type'=>'submit',                 'imageurl'=>'/mdg/images/receive1.png',                 'visible'=>'($data->status=="pending")?true:false;'              ),                              'rollback'=>array(                 'id'=>'rollback',                 'name'=>'rollback',                                      'click'=>''                 'url'=>'$this->grid->controller->createurl("/shop/order/admin&rollback=true", array("id"=>$data->order_id,"asdialog"=>1,"gridid"=>$this->grid->id))',                 'imageurl'=>'/mdg/images/rollback.jpg',                 'visible'=>'($data->status=="pending")?false:true;'              ),           ),     ), ), )); ?> 

and when add 1 more button buttons array, filter doesn't work. idea why is?

there click => '', in recieve button's array.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -