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

Ajax Spinner on all Controls

5 Answers 301 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Stuart Shay
Top achievements
Rank 1
Stuart Shay asked on 02 Mar 2011, 05:32 PM
Hello All:

On my page In the Ajax Manager Proxy I defined the controls which get updated on postback everything is working as expected, the issue is that every control has a spinner over it when the page is processing the Ajax request.

How do I define the Markup below so when the RadTabStrip1 and rblFilterType events fire the Spinner only appers over the GridView1 and not the other controls.

Attached is a screenshot showing the spinner over the RadioButon list (rblFilterType) which i want to remove.

Any Code Samples or links would be much appreciated.
Version: 2010.1.519.35

Thanks
Stuart
 

   <telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanel1" runat="server">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTabStrip1"  />
                        <telerik:AjaxUpdatedControl ControlID="GridView1" LoadingPanelID="radAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="PageStatus1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="GridView1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="GridView1" LoadingPanelID="radAjaxLoadingPanel1"  />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="rblFilterType">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rblFilterType" />
                        <telerik:AjaxUpdatedControl ControlID="GridView1" LoadingPanelID="radAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="PageStatus1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManagerProxy>

5 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 07 Mar 2011, 01:56 PM
Hello Stuart,

I recommend that you use the following code in order to implement the desired functionality:
Copy Code
protected void Page_Load(object sender, EventArgs e)
{
    RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
    manager.AjaxSettingCreated += new RadAjaxControl.AjaxSettingCreatedDelegate(manager_AjaxSettingCreated);
}
 
void manager_AjaxSettingCreated(object sender, AjaxSettingCreatedEventArgs e)
{
    e.UpdatePanel.ChildrenAsTriggers = false;
}

I hope this helps.

Best wishes,
Mira
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Stuart Shay
Top achievements
Rank 1
answered on 08 Mar 2011, 08:53 PM
Mira

When the Control is clicked I want only the GridView1 Control updated, so when  RadTabStrip1 or  

rblFilterType is clicked I don't want the spinner over the these controls but only the Gridview1 to have the spinner.

Thanks
Stuart

 

 

0
Mira
Telerik team
answered on 10 Mar 2011, 10:34 AM
Hello Stuart,

Have you tried the code from my previous post in your project?
Please let me know whether it changes anything.

I am looking forward to your reply.

Regards,
Mira
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Stuart Shay
Top achievements
Rank 1
answered on 15 Mar 2011, 08:46 PM
Mira:
 
The Code you provided just places the spinner on the item clicked (No Child Items) so if the Button is clicked the Spinner just appears arround the button.
 
I want it so that when the button is clicked the spinner does not appear arround the button but just the Grid.  I do want the Child Item of only the Grid and NOT the Parent or any other items on the page.
 
If you could provide a sample would be great !!!
 
Thanks
Stuart
0
Mira
Telerik team
answered on 18 Mar 2011, 10:28 AM
Hello Stuart,

I have followed your scenario and prepared a sample project for you demonstrating how the desired functionality can be implemented. You can find it attached to this message.

I hope it helps.

Greetings,
Mira
the Telerik team
Tags
Ajax
Asked by
Stuart Shay
Top achievements
Rank 1
Answers by
Mira
Telerik team
Stuart Shay
Top achievements
Rank 1
Share this question
or