How to use beforeFilter and afterFilter in GridView widget ?

Can anybody please explain how to set beforeFilter and afterFilter events on GridView.

I need to prevent the filter submission and display some dialog first, so I need to set beforeFilter but I can’t figure out how form the provided documentation.

Thanks

You can simply use

$(document).on(‘beforeFilter’,’#w1’, function(event) {

// your code

});

Thank you Bipin, works fine with me :rolleyes: