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

Exclude a control from using a RadAjaxLoadingPanel?

1 Answer 64 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
J
Top achievements
Rank 1
J asked on 11 Jan 2013, 04:06 PM
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.

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 15 Jan 2013, 11:27 AM
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.
Tags
Ajax
Asked by
J
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or