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...
Here is the code to set the AjaxRequest handler and to register the grid with the AjaxManager.
This is the code for the AjaxRequest handler...
This is the AjaxLoadingPanel...
Thanks for your help!
Sean M. Severson
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