Adding an AJAX progress panel

Yehuda Lando asked on June 25, 2014 16:39


In some of my pages, I use AJAX panels around my web parts.

Is there a way to hook an update progress panel to them so it will show up when making an AJAX request?

Thanks, Yehuda

Recent Answers

Yehuda Lando answered on June 26, 2014 13:11

I found how to do this. I added this script:

// Get the instance of PageRequestManager.
var prm = Sys.WebForms.PageRequestManager.getInstance();
// Add initializeRequest and endRequest

// Called when async postback begins
function prm_InitializeRequest(sender, args) {
    // get the divImage and set it to visible
    var panelProg = $get('loader');
    var el = $get(; = ''; = 'fixed'; = el.offsetTop;
    panelProg.left = el.offsetLeft;

// Called when async postback ends
function prm_EndRequest(sender, args) {
    // get the divImage and hide it again
    var panelProg = $get('loader'); = 'none'; = '';

And I added a div like this:

<div id="loader" style="display:none;">
    <div class="circle"></div>
    <div class="circle1"></div>

And styled it with some css3 animations

2 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.