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

RadAjaxLoadingPanel not displaying on ajaxRequest

2 Answers 100 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Sean Severson
Top achievements
Rank 1
Sean Severson asked on 29 Nov 2010, 06:46 PM
I have a main page that contains several user controls.  One user control displays a RadWindow for entering information and then, upon close, refreshes a grid via an ajaxRequest.  The main page contains the RadWindowManager, RadAjaxManager, and the RadAjaxLoadingPanel.  I am able to add a new record and have the grid updated asynchronously,  except that the AjaxLoadingPanel is not displayed when the grid is updating.  The AjaxLoadingPanel does display when the "trigger" for the Asynchronous postback is the grid itself, however.

This is the javascript that runs OnClientClose of the RadWindow...
var radAjaxMgr = $find('<%= PageRadAjaxManager.clientID %>');
radAjaxMgr.ajaxRequestWithTarget('<%= NotesGrid.clientID %>', '');
$find('<%= PageRadAjaxManager.clientID %>').ajaxRequest('Note');

Here is the code to set the AjaxRequest handler and to register the grid with the AjaxManager.
Dim manager As RadAjaxManager = RadAjaxManager.GetCurrent(Page) 
AddHandler manager.AjaxRequest, AddressOf PalNoteTaskListAjaxManager_AjaxRequest
  
PageRadAjaxManager.AjaxSettings.AddAjaxSetting(manager, TaskGrid, lpWait)

This is the code for the AjaxRequest handler...

Protected Sub PalNoteTaskListAjaxManager_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs)
       Select Case e.Argument
           Case "Task"
               PopulateTaskGrid(False)
           Case "CompTask"
               PopulateCompletedTaskGrid(False)
           Case "Note"
               FillNoteGrid(False)
       End Select
   End Sub

This is the AjaxLoadingPanel...
<telerik:RadAjaxLoadingPanel
    id="lpWait" 
    InitialDelayTime="0" 
    runat="server"
    Transparency="10"  
    Height="100%" Width="100%" >
    <table Height="200px" Width="100%" >
       <tr valign="middle" >
          <td align="center">
             <img src="/SI/Images/status_anim.gif"  title="Wait" />
          </td
       </tr>
    </table
</telerik:RadAjaxLoadingPanel>

Thanks for your help!

Sean M. Severson

2 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 30 Nov 2010, 01:06 PM
Hello Sean,

Could you please try showing and hiding the LoadingPanel explicitly on the Ajax requests. Please refer to the following help topic for more information on this matter.
Let me know if this helps.


Sincerely yours,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Sean Severson
Top achievements
Rank 1
answered on 02 Dec 2010, 02:19 PM
Maria Ilieva,

I will look over the help topic you provided and see if I can manually display the loading panel.  Thank you for your help.

Sean M. Severson
Tags
Ajax
Asked by
Sean Severson
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Sean Severson
Top achievements
Rank 1
Share this question
or