Disable Ajax Loading on Postback

4 posts, 0 answers
  1. Ramjet
    Ramjet avatar
    51 posts
    Member since:
    Jul 2009

    Posted 30 Mar 2012 Link to this post

    Hello,

    I have a raddate control in a radajaxpanel. I would like the raddate postback=true but I do not wish to have two ajax loading animations during postback. I would like to disable the raddate control loading panel and let the ajaxpanel display the loading animation. It seems simple but I can't seem to figure it out and the terms I'm using on Google don't provide any clues.

    TIA
    JB

    Oh Yeah version 2012.1.301.40
    I suppose some code just in case it isn't clear:
    <td style="width:300px;height:500px;"> <!--This cell holds the invoice date selection control-->
         <telerik:RadAjaxPanel ID="ajxpnl_InvDate" runat="server" LoadingPanelID="InvDateLoadPanel">
              Invoice Date <telerik:RadDatePicker ID="rdt_InvDate" runat="server" Skin="Hay" AutoPostBack="true" ShowPopupOnFocus="true" OnSelectedDateChanged="selected" />
        </telerik:RadAjaxPanel>
    </td>

  2. SamJ
    SamJ avatar
    101 posts
    Member since:
    Jul 2008

    Posted 30 Mar 2012 Link to this post

    Hi John,

    RadDatePicker does not have it's own loading panel. If you are using only the RadAjaxPanel available in the snippet to ajaxify the picker, there is now way to see two loading panels. Is it possible that you added a RadAjaxManager on the page as well?
    Because it is not recommended to use more that one ajax controls (RadAjaxManager, RadAjaxPanel, UpdatePanel) to ajaxify the same page content. You can check this article or post the whole page so I can give you specific guidelines.

    SamJ
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ramjet
    Ramjet avatar
    51 posts
    Member since:
    Jul 2009

    Posted 30 Mar 2012 Link to this post

    Well there is my confusion. I did have an AjaxMgr and an Ajaxpanel. The AjaxMgr is covering just the control while the panel is of course getting everything in the panel....which is what I really want to happen when a date is selected. So let me ask you this.

    I was going to have 4 sections. Not all impact the others but when the date is changed it does impact all 4. So is my best approach to keep the AjaxMgr so I can fire other loading panels when the date is selected and put the controls on a regular ASP panel?
  5. SamJ
    SamJ avatar
    101 posts
    Member since:
    Jul 2008

    Posted 31 Mar 2012 Link to this post

    Yes, replacing the RadAjaxPanels with ASP:Panels would be better.
    If you can share the full page code, as it is now with the RadAjaxManager and the RadAjaxPanels I can help you fix the issue best way.
    I've been using RadAjax for long time.

    SamJ
Back to Top