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

Status Bar Loading Indicator

1 Answer 64 Views
Window
This is a migrated thread and some comments may be shown as answers.
Xorcist
Top achievements
Rank 1
Xorcist asked on 27 Feb 2013, 08:25 PM
When an iFrame is used to load RadWindow content, the status bar shows a loading indicator until the content is displayed. Is there any way to manually show this GIF in the for custom operations... like an AJAX transaction? There are times I auto-load data at intervals and don't want to lock down the entire RadWindow, but I do want a nice common place to show some operation is going on (and the status bar seems like a great place to do this). Any help would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 28 Feb 2013, 02:25 PM
Hello,

You can get a reference to the RadWindow from the page inside and call its _onWindowUrlChanging() and _onWindowUrlChanged() to show and hide the loading sign. If a full postback occurs the iframe's load event will fire and the loading sign will hide automatically. Otherwise you would need to hide it with your own code. You can find attached a simple example that uses buttons, in your actual case you should use the appropriate events (e.g. the PageRequestManager's beginRequest and endRequest).


Greetings,
Marin Bratanov
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
Window
Asked by
Xorcist
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or