CGridView Ajax Update with Parameters

I have a table using CGridView and have set the ‘updateSelector’ property for ajax updates. It works, in that it update the table, but I can’t figure out how to tell the server that a certain element was clicked.

For example, let’s say I have three buttons:


<a href="#" class="button action1">Action1</a><br />

<a href="#" class="button action2">Action2</a><br />

<a href="#" class="button action3">Action3</a><br />

I set ‘button’ as the update selector for CGridView. How do I tell the server that action1, action2, or action3 was the one pressed? Or in other words, how do I pass parameters to the server for a CGridView update.

I think, we need more details to try to help you.

What kind of update, we’re talking about. Do you use mentioned AJAX to update particular record that you have in your table / CGridView or do you update contents of CGridView with that AJAX call?

All these three buttons available in each CGridView row (for each record presented in table) or below it and are used to update CGridView?