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

remove Ajax Loading panel after page load

5 Answers 120 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Batoha
Top achievements
Rank 1
Batoha asked on 24 Aug 2010, 01:47 PM
Hello, guys.
In my application I added loading panel on client PageLoad event as it was described on this forum.
            function pageLoad(sender, eventArgs) {
                if (!eventArgs.get_isPartialLoad()) {
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("PAGE_LOAD");
                }
            }

But after I added some ajax requests to my code I found that the panel used as updated control gets redrawn each time (to be exact not, each but starting from second time and I think thi is a kind of bug) I perform ajax request.
I tryed to remove the ajax setting made to AjaxManager in a design time using the following code
        bool Stop = false;
        foreach (AjaxSetting Setting in RadAjaxManager1.AjaxSettings)
        {
            if (Setting.AjaxControlID == RadAjaxManager1.ID)
                foreach (AjaxUpdatedControl Ctrl in Setting.UpdatedControls)
                    if (Ctrl.ControlID == pnlSplash.ID)
                    {
                        Setting.UpdatedControls.Remove(Ctrl);
                        Stop = true;
                        break;
                    }
            if (Stop)
                break;
        }

but it didn't help. It still appears during ajax requests made from client code.
What have I done wrong?

With respect, Sergey.

5 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 26 Aug 2010, 02:25 PM
Hello Batoha,

If I understand correctly your requirements you need to show loading panel only on PageLoad of the page and not on each AjaxRequest. Could you please test the approach provided in the following help topic and verify if this works for you.


Best wishes,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Batoha
Top achievements
Rank 1
answered on 26 Aug 2010, 02:36 PM
Hello, Maria.
The approach you advised is what I used on my page.
But as we know, when we add something to AjaxManager as an updated control it will be updated if its so to say "master" AjaxContol requested any ajax update. In the propesed case I added pnlSplash as an upated control to the AjaxManager itself.
After that AjaxManager will update pnlSplash in any case is I make any call to $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("SOME_KIND_OF_ANYTHING");
That is what I want to avoid with pnlSplash. I do not want it to be updated after initial load. So I tryed to remove it from AjaxManager's updated controls but with no success. That caused my question.

With respect, Sergey.
0
Maria Ilieva
Telerik team
answered on 31 Aug 2010, 01:21 PM
Hi Batoha,

Will it be convenient for you to open a regular support ticket and send us small runnable application which demonstrates your scenario and the issue you are facing? Thus we will be able to test it locally and advise you further.
Thank you in advance for your cooperation.


All the best,
Maria Ilieva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Batoha
Top achievements
Rank 1
answered on 31 Aug 2010, 06:49 PM
Hello, Maria.
I've just opened ticke ID = 344001

With respect, Sergey.
0
Maria Ilieva
Telerik team
answered on 01 Sep 2010, 01:05 PM
Hello Batoha,

I have already answered to your support ticket. Test the provided solution and let me know if it works for you.
Thank you for your cooperation.
Do not hesitate to contact as back if further assistance is needed.


Sincerely yours,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
Batoha
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Batoha
Top achievements
Rank 1
Share this question
or