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

RadAjaxLoadingPanel with MasterPage?

1 Answer 129 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 29 Jun 2012, 04:08 PM
Within my master page I have a RadSplitter layout. One of the Splitter panes contains the MasterPage contentholder and since the requirement called for only this area to update on the click of a navigation node item I placed an iframe within the contentholder (All content in iframe is located within the site itself). I was wondering however, if there is a way to utilize and show the RadAjaxLoadingPanel after the navigation node item has been clicked and hides when the page in the iframe is finished loading?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 03 Jul 2012, 02:02 PM
Hi Matthew,

Since the iframe is redirecting to a new page, the initiated load of the form is not a postback, but rather an entirely new page load. Therefore, RadAjaxLoadingPanel simply does not have a created control to be applied on, thus, this scenario is not supported.

One possible approach to achieve the desired functionality is to use a RadWindow with ShowContentDuringLoad set to false as demonstrated in the following demo:
 Window / Show Content During Load
Please note that you could remove the extra styling of RadWindow and display it as a regular iframe.

An alternative approach would be to try showing the loading panel explicitly. You could initiate the loading over a given panel on user node click and then end it when the iframe completely loads its page using the onload event of the iframe:
<iframe ... onload="ResponseEnd();"></iframe>

I believe this will prove helpful. 

Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Matthew
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or