Cgridview Cbuttoncolumn Buton Url Javascript

Hi All,

I would like give a link to a button on CGridView, but url has to be php expression. How can I give link to one javascript function ?

‘buttonID’ => array(

‘label’=>’…’, // text label of the button

‘url’=>’…’, // a PHP expression for generating the URL of the button

‘imageUrl’=>’…’, // image URL of the button. If not set or false, a text link is used

‘options’=>array(…), // HTML options for the button tag

‘click’=>’…’, // a JS function to be invoked when the button is clicked

‘visible’=>’…’, // a PHP expression for determining whether the button is visible

)

Hi,

Use ajaxlink or ajax buttton in cgridview to echieve your functionality.