0 Replies - 793 Views - Last Post: 23 July 2013 - 02:46 AM Rate Topic: -----

#1 Ushari  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 21-July 13

How to display progress bar when we click on export excel button.

Posted 23 July 2013 - 02:46 AM

HI,

How to display progress bar when we click on export excel button and disappear when the file dialogue box opened.


//get the instance of the PageRequestManager currently handling the request
var prm = Sys.WebForms.PageRequestManager.getInstance();
//add a handler for the InitializeRequest event
prm.add_initializeRequest(InitRequest);
//add a handler to the EndRequest event
prm.add_endRequest(EndRequest);

function InitRequest(sender, args)
{
$get("progressDivWithGif").style.display = "block";
}
function EndRequest(sender, args)
{
$get("progressDivWithGif").style.display = "none";
}



I tried with this code. But it shows only progress bar when we click on Export to excel butto. I am unable to get the file dialogue box.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1