Using Counter Excell with #select_filter

I am using the Counter Excell to automatically number my grid rows and a #select_filter together. When the #select_filter is applied, the Counter Excell doesn’t recalculate the row numbers. However, if a sort feature is used after the #select_filter, the rows numbers are recalculated.

Is there a way to recalculate the Counter Excell row numbers after a #select_filter is applied?

I found this worked to fix my problem:

mygrid.attachEvent(“onFilterEnd”, function(){
mygrid.resetCounter(0);
});