Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Stop Javascript Loader When Ajax Update Complete

$
0
0

Hi guys

I have an application that I am writting.

I use a javascript Loader which appears as a modal for when data is loading a bit slow.

It works great until I get to one page.

On this page I have a modal that loads on page load.

In the modal I have a series of search criteria.

When the Search button is clicked a Datagrid within the modal loads data.

To make this more dynamic and stop the datagrid repainting everytime a search is requested I have surrounded the controls on the modal with an AJAX Update Panel.

When the search button is clicked the Loader Modal appears as expected.

The only problem is that it doesnt then go away once the datagrid is loaded.

I also use masterpages and the code for the loader is on the masterpage.

I have tried using Javascript calls to close the loader but I cant get it to work.

I included a function that closes the loader when any ajax.complete action is detected but this doesnt work either.

Any suggestions??


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>