This is a migrated thread and some comments may be shown as answers.

RadAjaxLoadingPanel as UserControl

6 Answers 139 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
mSchmidt
Top achievements
Rank 1
mSchmidt asked on 27 Oct 2008, 08:20 AM
Hi i created a RadAjaxLoadingPanel the way i would like to use it all over my project.

Is there anyway for me to change this into a UserControl so that if i want to change it i change it one place.



    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"     
        Transparency="5" IsSticky="True">  
        <div align="center" style="height: 45px; width: 150px; background-color:#F0F0F0;">  
        <img alt="Loading..."   
            src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading5.gif") %>'   
            style="border:0px;" /> 
            <br /> 
            Arbejder...  
              
            </div> 
    </telerik:RadAjaxLoadingPanel> 

6 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 27 Oct 2008, 11:41 AM
Hello mSchmidt,

You can use FindControl() method in your pages to locate the LoadingPanel in MasterPage and add it to the programmatically created AjaxSettings.

Kind regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
mSchmidt
Top achievements
Rank 1
answered on 27 Oct 2008, 12:36 PM
Hi

Sadly i do not use a master page, its a wide range of different sites, however i want to have the same loading panel across all my pages.
0
Maria Ilieva
Telerik team
answered on 28 Oct 2008, 12:19 PM
Hi mSchmidt,

If you need to use one LoadingPanel for all pages in one application you could still use the FindControl() no matter that you do not have MasterPage. Getting reference to the LoadingPanel will allow you to add it to all pages in the programatically added Ajax settings.

Best wishes,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
mSchmidt
Top achievements
Rank 1
answered on 29 Oct 2008, 07:35 AM
Well its multiple ASPX sites where i need to use the same loadingpanel, i was thinking creating it as a Usercontrol or something, but i cant seem to manage.
0
Maria Ilieva
Telerik team
answered on 29 Oct 2008, 08:48 AM
Hello mSchmidt,

Unfortunately it is not able to create the LoadingPanel as UserControl and use it in multiple ASPX sites. Currently the only possibility is to use one LoadingPanel in the different pages of one appliocation.

Best wishes,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
mSchmidt
Top achievements
Rank 1
answered on 29 Oct 2008, 09:12 AM
I guess i could add the LoadingPanel and then create a method which takes the loadingpanel as a parameter and then injects the look and feel i would like ?
Tags
Ajax
Asked by
mSchmidt
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
mSchmidt
Top achievements
Rank 1
Share this question
or