Clistview Pager - After Update

Is it possible to invoke a JS function after the CListView has received new content from a pager action?

For example, when I click a page link, it needs to run a JS function that makes the page scroll to the top (so user can see the results properly).

This is it.

http://www.yiiframework.com/doc/api/1.1/CListView#afterAjaxUpdate-detail

Thanks. I did try that yesterday but it didn’t work. I figured it out though.

Basically instead of:


'afterAjaxUpdate'=>'js:yourFunction()',

You need to do:


'afterAjaxUpdate'=>'js:yourFunction',

I.e. without the parenthesis.