Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
How to cancel a grid data refresh
posted

Hi,

I am using IgGrid and on click of a certain button i am refreshing the grid data by setting the data source on the grid to a new url which makes an ajax call to get data.

Now my search is taking a lot of time to return the data, meanwhile on click of another button i would like to cancel the data refresh that is taking place.

Is there a method available in IGGrid to do that?

Thanks,

Sushma

Parents
No Data
Reply
  • 3995
    Offline posted

    Hello Sushma,

    You need to make an ajax request and when the response is ready there assign it directly to the dataSource. Do not use dataSourceUrl at all.

    And if the request is taking too long and the cancel button is clicked abort the ajax request you made for the data.

Children