Gridview Append to ApplyFilters JS?

I need some custom javascript in the applyFilter section of yii.gridView.js. I basically need to modify the post data before it is posted.

It looks like there is code to do this so I don’t have to modify the file. beforeFilter/afterFilter?

So my question(s) are: how do you use beforeFilter/afterFilter?

I know I could load a custom/hacked yii.gridView.js but that solution is not my favorite option.

Thanks in advance.

Hi Adept,

I think this post will help you.