RSS
 

Archive for the ‘progressbar’ Category

Display updateprogress in the clicked position

23 Jan

On the following example, progress bar(UpdateProgress1) is displayed on the position of the button which got clicked

function pageLoad()

     {     

           var manager = Sys.WebForms.PageRequestManager.getInstance();
   
          
       manager.add_beginRequest(OnBeginRequest);
   
    }

    function OnBeginRequest(sender, args)
    {
 
          var postBackElement = args.get_postBackElement();
          var position = $(“#”+postBackElement.id).offset();
         
         
          $(“#<%=UpdateProgress1.ClientID%>”).css({‘position’ : ‘absolute’, ‘z-index’ : ’1002′, ‘overflow’ : ‘auto’,'top’ : position.top,’left’ : position.left}).fadeIn(100);

}