Skip to content

Infragistics Community Forum / Web / Ignite UI for jQuery / HTTP Interceptor is not able to Intercept HTTP requests triggered by IGGrid control

HTTP Interceptor is not able to Intercept HTTP requests triggered by IGGrid control

New Discussion
Abhishek Sinhal
Abhishek Sinhal asked on Apr 21, 2017 2:23 PM

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

Sign In to post a reply

Replies

  • 0
    Michael Peterson
    Michael Peterson answered on Apr 19, 2017 7:12 PM

    Hello Abhishek,

    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.

    • 0
      Abhishek Sinhal
      Abhishek Sinhal answered on Apr 21, 2017 1:12 PM

      Hello Mike,

      Thank you for replying.

      Can you please provide any sample code for how to watch igGrid(jQuery/Ajax) request? 

      • 0
        Michael Peterson
        Michael Peterson answered on Apr 21, 2017 2:23 PM

        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

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Abhishek Sinhal
Favorites
0
Replies
3
Created On
Apr 21, 2017
Last Post
8 years, 10 months ago

Suggested Discussions

Created by

Created on

Apr 21, 2017 2:23 PM

Last activity on

Feb 25, 2026 9:38 AM