CGridView: Cancel current ajax request before create another

If you create another ajax request, either by changing the sort or click on a pagination link, it will currently just add another ajax request to the stack.
A better way would be to cancel the last request and then make a new one.
This is a problem when the response time is high.