When a filter or page number is clicked on with CGridView, a spinning disc appears in the top left to indicate an action.
I have my own custom ajax buttons in the grid. However they do not trigger the spinning disc. Before I dig into the ajax code that is produced, I was wondering if there is a standard way of triggering it manually.
No worries. It’s easy to over ride.
Added this to the html options for the ajax link.
"onclick"=>"$(\'.grid-view\').addClass(\'grid-view-loading\')"
and this in the callback function to turn it off again
$('.grid-view').removeClass('grid-view-loading');
N.B. The escaped quotes are because the whole ajax link is inside a single quoted string so it can be passed into CGridView