Unable to have loadingpanel display when using clientside ajaxrequest

5 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 03 Sep 2009 Link to this post

    Hello,

    Simulating a callback using code in documentation:
     $find("<%=RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(eventArgs);
    I have added this radajaxmanager in its own ajaxsettings with the updated controls in codebehind.

    But I am unable to have the default loading panel displayed during this callback ?
    Call back is working normally and this loading panel works perfectly for other controls ???

    Am i missing something ?

    Thanks for help.
    CS

    v 2009.2.826
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 04 Sep 2009 Link to this post

    Hello Christian,

    You can show/hide the loading panel explicitly - please check this article:
    http://www.telerik.com/help/aspnet-ajax/ajxshowhideloadingpanel.html

    Regards,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 04 Sep 2009 Link to this post

    Hello Vlad,

    Thanks for answer.
    You know I have already inspected this solution and have been unsuccessful in trying to adapt it showing the loadingpanel before calling ajaxreqest : nothing displayed.
    My context  is a main aspx page which loads ascx controls, main page contains ajaxmanager and controls ajaxmanagerproxy.
    The ajaxrequest is inside an ascx.
    This ascx contains a couple radtabstrip/RadMultipage with 3 tabs: 1-> input controls, 2->radgrid, 3->radChart.
    input controls from first tab autopostback to fill grid and chart.
    Very common and working nicefully.
    But I tryed to add a button on 3rd tab to adjust Chart dimensions to fit all available space, getting width and height from its parent div as explained in some forum samples, so I trigger an ajaxrequest with dimensions in argument from the button clientclick.

    I have tryed to add the ajaxmanager in its own ajaxsettings as recommanded in doc, and as it is impossible to do it in Oninit because Page seems to be null (???  RadAjxManager.GetCurrent(Page) throws when called from OnInit), I added it in Page_Load of control.

    Concerning the adding of an ajaxrequest handler, as AjaxManager is unable to found its object during OnInit, I used a turn-around which seems to work even in OnInit with Page.FindControl("RadAjaMAnager1"), adding the handler to the returned object.
    I receive the call back.

    BUT why the DefaultAjaxLoadingPanel is not displayed automatically ? Is it normal when using ajaxrequst clientside ???

    You asked me to use OnrequestStart/OnRequestEnd but I cant because:
    1) I have already a generic handler for OnRequestStart which center loadingpanel on page.
    2) Calling this ajaxrequest is depending on a specific ascx control being loaded, so I can't modify the generic OnrequestartHandler for a non present control....

    Again, why the default loading panel is not showing ? Is it a quirk in ajaxrequest or side effect of my implementation ?

    Thanks for help.
    CS
  5. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 04 Sep 2009 Link to this post

    Strange but it started working when I added a RadFormDecorator as target for AjaxManager and removed zoom on the chart ?
    I will do more testing ?
    Would be appreciable to receive some warning when something in ajaxsettings looks bad, a radFormDecorator is outside the target control but it seems it has to be added to any relation when it covers one of its decorated elements ?

    All this look hazardous to me ?

    CS
  6. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 09 Sep 2009 Link to this post

    Hello Christian,

    I am glad that the project is working as per your requirements now. I suspect that what was causing this are improper ajax settings, which can occur in more complex scenarios like yours. If any additional issues arise, or you have further questions, you can open a formal support ticket, and send us the problematic implementation, in the form of a small working project, which we can debug locally, and provide additional information.

    Sincerely yours,
    Yavor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017