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
52
WebAsyncRefreshPanel Image location
posted

Hi

I have more than one refresh panel in my page and i want to display the refresh image location in the center of screen irrespective of which refresh panel is getting refreshed. How can i achieve this

 Thanks in Advance

 

 

Parents
No Data
Reply
  • 24497
    posted

    Hi George,

    In current version of WebAsyncRefreshPanel you may use setRelativeContainer. In earlier versions using internal variables is required and not simple.
    Process ClientSideEvents.Initialize for all you WARPs and point them to the function like below

    Codes for current version:
    function WebAsyncRefreshPanel1_InitializePanel(oPanel)
    {
      
    var pi = oPanel.getProgressIndicator();
       //here body is used as container for indicator
       pi.setRelativeContainer(document.body);
      
    //pi.setLocation(ig_Location.MiddleCenter);
      
    //pi.setTemplate("Hello there"); //or
       //pi.setImageUrl('./myImage.gif');
    }

    Codes for old version
    function WebAsyncRefreshPanel1_InitializePanel(oPanel)
    {
       oPanel.fixPI = function(pi)
       {
          pi._rc = document.body;
          pi.setLocation(ig_Location.MiddleCenter);
       }
    }

    Regards,
    Viktor
    Infragistics web team

Children