Pass Object Properties Into Gridview SelectionChange Option

Hi guys,

I have a problem in CGridView options (selectioChange). In documentation, it show me how to pass the row id in the gridview, but I want to pass more params in selectionChange option.

In my code:

'selectionChanged' => 'function(id){viewValidQuote($.fn.yiiGridView.getSelection(id))}'

Because I wana check if the row status (model’s attribute) is true, I will disable the selectionChange, otherwise, this option still work.

Any idea?