remove Ajax Loading panel after page load

6 posts, 0 answers
  1. Batoha
    Batoha avatar
    22 posts
    Member since:
    Jun 2010

    Posted 24 Aug 2010 Link to this post

    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.
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 26 Aug 2010 Link to this post

    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
  3. Batoha
    Batoha avatar
    22 posts
    Member since:
    Jun 2010

    Posted 26 Aug 2010 Link to this post

    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.
  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 31 Aug 2010 Link to this post

    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
  5. Batoha
    Batoha avatar
    22 posts
    Member since:
    Jun 2010

    Posted 31 Aug 2010 Link to this post

    Hello, Maria.
    I've just opened ticke ID = 344001

    With respect, Sergey.
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 01 Sep 2010 Link to this post

    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
Back to Top