I am working on a rather large web app that has separate instances of the same web user control used on multiple steps of an ASP.NET Wizard control.
I am triggering an ajax postback via javascript:
var
manager = $find(
"<%=RadAjaxManager.GetCurrent(Page).ClientID %>"
);
var
textBoxId =
"<%= txtSearchFilter.UniqueID %>"
;
if
(manager && textBoxId) {
manager.ajaxRequestWithTarget(textBoxId, searchText);
}
The web user control's markup contains the following:
<
telerik:RadAjaxManagerProxy
ID
=
"radAjaxManagerListSelections"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"txtSearchFilter"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"lstBxAvailableItems"
LoadingPanelID
=
"radLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"lstBxAvailableItems"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"lstBxSelectedItems"
LoadingPanelID
=
"radLoadingPanel1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"lstBxAvailableItems"
LoadingPanelID
=
"radLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"lstBxSelectedItems"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"lstBxSelectedItems"
LoadingPanelID
=
"radLoadingPanel1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"lstBxAvailableItems"
LoadingPanelID
=
"radLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
<
telerik:RadAjaxLoadingPanel
ID
=
"radLoadingPanel1"
runat
=
"server"
Skin
=
"Sitefinity"
MinDisplayTime
=
"1000"
>
</
telerik:RadAjaxLoadingPanel
>
The problem I'm experiencing is that the loading panel shows up correctly in the first step of the wizard, but on subsequent steps that utilize the same web user control, the loading panel does not show up.
All data posts correctly on the subsequent steps, but the loading panels do not display. My first thought was that the code was getting confused with the control clientIDs, but it appears as if the rendering for each step is putting the right id values into my javascript server blocks. I'm not sure how to verify that the loading panel is targeted to the correct clientID values though when looking at the source for the rendered page.
I am removing the loading panels for now to keep the look and feel uniform for each step, but I would really like to solve this problem as the loading panels definitely add something to the user experience.
Thanks,
Charlie