Cbuttoncolumn + Mybutton + Behavior As Delete()


I am new in Yii, and I have a simple question.

I have simple CGridView with default CButtonColumn.

When user clicks the delete ‘n’ accept, Yii shows nice round icon “in progress”. After delete() Yii refreshes the grid. Great.

I want to add a custom button with the action. It’s simple with Yii. But how to turn Yii “behavior”(?) as the action Delete?

So that during the operation MyMethodDoSomething(), you could see the progress. And at the end Yii refreshes the grid.

Is it possible?

Best regards