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

RadNotification and RadAjaxPanel

2 Answers 175 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Alexey
Top achievements
Rank 1
Alexey asked on 17 Nov 2011, 05:45 PM
Hello,

I have a problem. I am trying to use ajax functionality inside RadNotification, but have an error
XmlHttpPanel Callback Loading error:
 Exception=Script control '' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl

Sample code:

<telerik:RadNotification ID="rnReminder" runat="server" KeepOnMouseOver="true" Width="500px" Skin="Windows7" LoadContentOn="TimeInterval" Animation="Fade" EnableRoundedCorners="true" EnableShadow="true" Title="Напоминание" OffsetX="-20" OffsetY="-20" TitleIcon="none" UpdateInterval="10000" OnClientUpdated="OnClientUpdated" AutoCloseDelay="5000" OnCallbackUpdate="ReminderOnCallbackUpdate">
            <ContentTemplate>
                <telerik:RadAjaxPanel runat="server">
                    Test
                    <telerik:RadButton ID="rbtnCancel" runat="server" Text="Cancel" />
                 </telerik:RadAjaxPanel>             </ContentTemplate>         </telerik:RadNotification>

Please help.


2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 18 Nov 2011, 05:38 PM
Hi Alexey,

Let me start by pointing out that having an update panel inside a RadXmlHttpPanel (which is what the Notification uses internally) is a bit contradicting - the purpose of the XmlHttpPanel is to allow the notification to use light callbacks to communicate with the server, thus be able to load content quickly and with less server load, which is not the case with AJAX. Therefore I would advise that you simply remove the AJAX and use the notification as its intended purpose - a container for a message.

The short version of the above paragraph is that RadXhmlHttpPanel does not support the RadAjaxPanel inside.

If you still need the AJAX, for some reason in your scenario, I advise that you replace the RadAjaxPanel with a regular asp:UpdatePanel with UpdateMode set to Conditional.


Kind regards,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Alexey
Top achievements
Rank 1
answered on 18 Nov 2011, 05:55 PM
Hi,

UpdatePanel worked for me. Thanks.
Tags
Notification
Asked by
Alexey
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Alexey
Top achievements
Rank 1
Share this question
or