Here is an small example of how to perform an action when the row is clicked. To accomplish this, you need to use the .SetOnSelectedRowEvent. In here, you can put your javascript function name, or the function directly.

The APIpassed the id column in a variable named surprisingly, 'id'

For example, if you wanted to goto a details page whenever you clicked on a row:

How can i define properly a function to be called by the OnSelectedRowEvent? I've tried using a simple Test(id) which alerts the id selected. Even though it works, i still get a "Test(id) is not a function" error (seen this using firebug). How can i prevent this error from ocurring?