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

EnableAJAXLoadingTemplate removed from RadControls for WinForms where is it in RadContorls for AJAX?

1 Answer 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 20 Oct 2008, 04:50 PM

Requirements

RadControls version

2008.2.1001.35

 

 



.NET version

3.5

Visual Studio version

2008 SP1

programming language

C#

browser support

all browsers supported by RadControls

I have added a RadGrid and the 
            EnableAJAX="True" 
            EnableAJAXLoadingTemplate="True" 
have been removed from the RadGrid AJAX version 2008.2.1001.35 and I would like to know how I would use the EnableAJAXLoadingTemplate?

I have put the RadScriptManager and the RadAjaxManager on my master page. I have also used the RadAjaxManagerProxy in the control where I have the RadGrid to enable AJAX on the RadGrid. I see the property for EnableAJAX is on the RadAjaxManager I have on my MasterPage.

What do I need to do to get the EnableAJAXLoadingTemplate to work so when a new page is loading in the RadGrid we can get the spinning icon on the RadGrid until the new page is loaded without a full post back?

Thank you,

Daniel

1 Answer, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
answered on 20 Oct 2008, 06:39 PM

Ok I figured this out and the example explains everything except how to link it to a control on the page.

Well when you have a control such as a RadGrid and you want to use AJAX with it. It is a good thing to put on the MasterPage a RadScriptManager and let it replace the asp:scriptManager and let it add the WebResource.axd entry to your web.config file.

In the page/user control where you have the RadGrid you will need to add a RadAjaxManagerProxy and in the AjaxSetting tag under the RadAjaxManagerProxy refference the AjaxControlID for the rad grid.
In the AjaxUpdatedControl put the id of the grid in the 'ControlID' and the id of the 'LoadingPanelID' will be the control for the image to display taking place of the EnableAJAXLoadingTemplate.

You will have to place a RadAJAXLoadingPanel on the page too with the image you want to display. such as:

 

<

 

telerik:RadAjaxManagerProxy ID="radAjaxManagerProxyInvoiceSearch" runat="server">
    <AjaxSettings>
       
<telerik:AjaxSetting AjaxControlID="radGridResultsInvoiceSearch" <UpdatedControls> 

 

 

<telerik:AjaxUpdatedControl ControlID="radGridResultsInvoiceSearch" LoadingPanelID="RadAjaxLoadingPanelInvoiceSearch" />

 

 

 

</UpdatedControls>

 

 

 

 </telerik:AjaxSetting>

 

 

 

 </AjaxSettings>

 

 

 

 </telerik:RadAjaxManagerProxy>

 

 

 

 <td>

 

 

 

 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelInvoiceSearch" Runat="server" height="75px" width="75px" >

 

 

<img alt="Loading..." src="../../Images/loading7.gif" style="border:0px;" />

 

 

</telerik:RadAjaxLoadingPanel>

 

 

<telerik:RadGrid ID="radGridResultsInvoiceSearch" ...


I hope this helps people because I have spent too many hours finding this and an extra sentence on the example page would help in the 'AJAX Loading Panel'

http://www.telerik.com/help/aspnet-ajax/ajxloadingpanel.html

:)

 

Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 1
Share this question
or