Exclude a control from using a RadAjaxLoadingPanel?

2 posts, 0 answers
  1. J
    J avatar
    35 posts
    Member since:
    Oct 2012

    Posted 11 Jan 2013 Link to this post

    I have a default loading panel set because I want pretty much everything to use it except for one thing. Is there a way to exclude something? Here's a condensed version of what I'm hoping to make work:

    <telerik:RadAjaxManager runat="server" DefaultLoadingPanelID="loadingPanel">
      <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnLoad">
          <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="rgResults"/>
            <telerik:AjaxUpdatedControl ControlID="lblResults"/>
          </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="txtIDs">
          <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="rtb1"/>
            <telerik:AjaxUpdatedControl ControlID="rtb2"/>
          </UpdatedControls>
        </telerik:AjaxSetting>
      </AjaxSettings>
    </telerik:RadAjaxManager>

    I know I can just leave out a default loading panel and explicitly set a loading panel for the ones I want, like so:

    <telerik:AjaxUpdatedControl ControlID="rgResults" LoadingPanelID="loadingPanel"/>
    <telerik:AjaxUpdatedControl ControlID="lblResults"/>

    But if all but one are going to use the loading panel, it's less wordy to do it the other way.
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 15 Jan 2013 Link to this post

    Hi J,

    Possible approach in your case is to manually hide the LoadingPanel depending on the Ajax initiator and updated control. See the help topic below for more information on this matter:
    http://www.telerik.com/help/aspnet-ajax/ajax-show-hide-loadingpanel.html

    All the best,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top