Hi, I am writing a Http Interceptor in angular 2 where I am able to Intercept all the Http requests except requests triggered by IGGrid control.
I am using “dataSourceUrl” property to bind IGGrid from a service URL. Http Interceptor is not able to intercept http get requests triggered to fill IGGrid, column filters, next & previous button click. Is there any way to Intercept all the request triggered by IGGrid? Thanks & Regards, Yogesh Yadav
Hello Abhishek,
Please see the following stackoverflow about tracking ajax requests:http://stackoverflow.com/questions/4406606/can-jquery-listen-to-ajax-calls-from-other-javascript
Hello Mike,Thank you for replying.Can you please provide any sample code for how to watch igGrid(jQuery/Ajax) request?
Thank you for contacting Infragistics!
The reason you are not seeing the igGrid requests is that the igGrid uses jQuery/Ajax to do the requests instead of the angular methods for requests. So you be able to intercept them you would have to watch for those methods.