AjaxLoadingPanel is not working with webpart

2 posts, 0 answers
  1. Savan
    Savan avatar
    26 posts
    Member since:
    Oct 2007

    Posted 15 Aug 2008 Link to this post

    Hi,

    I am using AjaxLoading Panel in web part,

    I had set Transparency= 30, but its not working correctly.
    Its only applying to image which I am using in Loading Panel.

    But Transparency is not set for whole web part.

    What will be the problem?

    Some sample code
       
                    loadingPanel = new AjaxLoadingPanel();
                    loadingPanel.ID = "loadingPanel";
                    Image img = new Image();
                    img.ImageUrl = "Image Url";
                    img.AlternateText = "Loading...";
                    loadingPanel.Width = new Unit(100, UnitType.Percentage);               
                    loadingPanel.Controls.Add(img);
                    loadingPanel.Transparency = 30;

                    panel.LoadingPanelID = loadingPanel.ID;
                    panel.Controls.Add(loadingPanel);
                    this.Controls.Add(panel);


    Thanks
    Savan
  2. Kevin Babcock
    Kevin Babcock avatar
    189 posts
    Member since:
    Mar 2007

    Posted 17 Aug 2008 Link to this post

    Hello Savan,

    The reason transparency is only visible on the image in your RadAjaxLoadingPanel is because there is no other content in the loading panel's containing <div>. The Transparency property works by setting the entire <div> contents to be transparent, according to the percentage value indicated. If you want the entire loading panel to give the same appearance as the image, set the background color of the loading panel to a color that matches your image. For the default loading panel image, I like to use white as the background color.

    I hope that helps.

    Regards,
    Kevin Babcock
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top