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

[Solved] Show LoadingPanel by default but exceptionally Hide it

3 Answers 111 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Saed
Top achievements
Rank 1
Saed asked on 17 May 2009, 07:51 PM
Hello there,

in most cases, I need the LoadingPanel to show with every Ajax Request, so I set it as the DefaultLoadingPanel in the RadAjaxManager. Things are fine and it loads nicely. However, in very few scenarios I don't wish the Panel to load. Is there a way to disable that on client-side?

RadAjaxManager as well as the LoadingPanel reside in my main ASPX page while the event I wish to disable the LoadingPanel for is in a UserControl that dynamically feeds into main ASPX. I can't seem to figure out how to reference the LoadingPanel from UserControl via client-side as well.

The other alternative would be to explicitly identify the LoadingPanel with every AjaxSetting's UpdateControl, which I believe is far from being practical.

Thank you in advance.

Regards,

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 20 May 2009, 02:31 PM
Hello Saed,

You can display or hide the RadAjaxLoadingPanel explicitly using the show/hide methods from its client-side API (depending on the initiator of the request). Review the following topic from the RadAjax documentation for more details.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Saed
Top achievements
Rank 1
answered on 20 May 2009, 09:57 PM
Thanks for the the advice, but in order to to implement that I need to reference the LoadingPanel. As I said, LoadingPanel is in aspx while the call needs to be in a UserControl. How could I achieve that? Documentation assumes LoadingPanel in same page.

Thank you again.

Regards,
Saed
0
Sebastian
Telerik team
answered on 21 May 2009, 08:20 AM
Hello Saed,

With the $find method you should be able to reference the client object of the RadAjaxLoadingPanel regardless whether you javascript resides on the main page or inside a user control. Let me know if I am missing something obvious.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Saed
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Saed
Top achievements
Rank 1
Share this question
or