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

Ajax loading Panel for all controls

3 Answers 150 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 26 Mar 2014, 10:57 AM
Hello.

I have a quick question.

Is ther any way to use the Ajax Loading Panel for all Controls on my site that doing a Postback?
I don't want to define all controls in the manager that do a postback.

I just want the ajax loading panel to show up every postback.

Is this possibile?

Thank you for reading.
Daniel

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 26 Mar 2014, 02:44 PM
Hello Daniel,

You could simply wrap the whole page with RadAjaxPanel control and set DefaultLoadingPanelID for it in order to have Loading Image to appear for each request.

Regards,
Maria Ilieva
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Daniel
Top achievements
Rank 1
answered on 28 Mar 2014, 01:35 PM
Hi Maria,

thank you. I tried it, but if the site postback its nothing happened:/

I added a screenshot how i define RadAjaxPanel and LoadingPanel.

Is it correct like this?

If yes, why the loading panel didn't popup?

Thank you, Daniel.
0
Shinu
Top achievements
Rank 2
answered on 31 Mar 2014, 04:32 AM
Hi Daniel,

Please try the following sample code snippet which works fine at my end.

ASPX:
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    <asp:Label ID="Label1" runat="server" Text="Loading..">
    </asp:Label>
    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/round-loading-icon.gif" />
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
    <asp:Panel ID="Panel1" runat="server">
        <asp:Label ID="Label2" runat="server" Text="Demo">
        </asp:Label>
        <asp:Button ID="Button1" runat="server" Text="Load" OnClick="Button1_Click" />
    </asp:Panel>
</telerik:RadAjaxPanel>

C#:
protected void Button1_Click(object sender, EventArgs e)
{
    System.Threading.Thread.Sleep(1000);
}

Thanks,
Shinu.
Tags
Ajax
Asked by
Daniel
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Daniel
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or