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

[Solved] LoadingPanel explicit show/hide

4 Answers 247 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Chris Dalessandri
Top achievements
Rank 1
Chris Dalessandri asked on 14 May 2008, 08:52 PM
I am explicitly showing a loading panel in OnRequestStart by calling its show() method.  No problem.

I would like to explicitly hide the loading panel at some point AFTER OnResponseEnd (like in a ResponseScript) because my page has some client-side processing to do before it is ready.

The problem is that I cannot get the RadAjaxManager to stop hiding the loading panel.  In fact, it is hiding it before it raises OnResponseEnd.

I am not specifiying the loading panel id in any of my AjaxSettings.  I am using Master/Content pages.

Any help would be much appreciated.

Thanks.

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 15 May 2008, 12:21 PM
Hello Chris,

Does this happen if you do not call its hide() method? You can use the MinDisplayTime property of the LoadingPanel in order to show it for a specific timeframe according to your needs.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chris Dalessandri
Top achievements
Rank 1
answered on 15 May 2008, 12:54 PM
Hello Steve,

I am not calling the hide method.  I removed all calls to it as a test.  And still, it hides.  In the end, I want to be able to call hide in my last response script after all client-side processing is done.  That way, the loading panel only comes down when the page is actually ready.

I cannot use the MinDisplayTime property as I cannot know in advance how long my client-side processing will take.  In testing, it has taken anywhere from 1 to 10 seconds depending on the data returned.

I am using Master/Content pages.  And I am dynamically loading UserControls into statically declared RadDocks.  I am adding ajaxsettings dynamically in codebehind so that I only update the UserControls and not the RadDocks on ajax calls, as I have read that updating Docks can cause problems.

In all other ways, the page functions as expected.

Thanks for any help.

Chris
0
Chris Dalessandri
Top achievements
Rank 1
answered on 15 May 2008, 02:01 PM
Just figured something out. 

With IsSticky="true", hide() is not working for me (as I described previously). 

With IsSticky="false", I can use show() and hide(). The loading panel shows and hides exactly when I tell it to.  BUT the control that is being covered by the loading panel is reappearing before my call to hide().  It seems the ajaxmanager is reappearing the control even though the control is not set to be updated.

This problem can be mitigated somewhat by setting the transparency to something other than zero so the control never actually disappears.
0
Iana Tsolova
Telerik team
answered on 16 May 2008, 05:31 AM
Hello Chris,

Unfortunately I was not able to replicate the problem in my local tests. Please find the attached my test project and let me know how it behaves at your end. I would appreciate if you send us a modified version of the sample/stripped working version of your project (attached to a formal support ticket) where we can reproduce the issue to debug it locally and find a proper solution for you.

Kind regards,
Iana
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Chris Dalessandri
Top achievements
Rank 1
Answers by
Steve
Telerik team
Chris Dalessandri
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or