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

RadAjaxLoadingPanel in master page

1 Answer 129 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Martin Horst
Top achievements
Rank 1
Martin Horst asked on 10 Feb 2012, 10:21 AM

Hi,

is it possible to place a RadAjaxLoadingPanel inside the master page so it will show on any kind of postback event!? I don't want to attach the RadAjaxLoadingPanel to specific controls like a send button which fire the postback. As for me, it should work on any page using the master page. Is this possible!?

Thanks in advance

Martin

1 Answer, 1 is accepted

Sort by
0
Abhishek
Top achievements
Rank 2
answered on 14 Feb 2012, 01:45 PM
Hello Martin Horst,

You can put RadAjaxLoadingPanel inside the master page and you can use is it in your all the pages. Please refer the bellow code.I have did this in my project.

C# Code:
if (this.Master is DialogMaster)
           {
               RadAjaxManager RadAjaxManager1 = (RadAjaxManager)Master.FindControl("RadAjaxManager1");
               RadAjaxLoadingPanel RadAjaxLoadingPanel1 = (RadAjaxLoadingPanel)Master.FindControl("RadAjaxLoadingPanel1");
               RadMultiPage RadMultiPage1 = (RadMultiPage)Master.FindControl("RadMultiPage1");
               RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadMultiPage1, radButton, RadAjaxLoadingPanel1);
           }

Let me know if any issue.

Thanks,
Abhishek K
Tags
Ajax
Asked by
Martin Horst
Top achievements
Rank 1
Answers by
Abhishek
Top achievements
Rank 2
Share this question
or