RadNotification and RadAjaxPanel

3 posts, 1 answers
  1. Alexey
    Alexey avatar
    8 posts
    Member since:
    Jun 2011

    Posted 17 Nov 2011 Link to this post


    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">
                    <telerik:RadAjaxPanel runat="server">
                        <telerik:RadButton ID="rbtnCancel" runat="server" Text="Cancel" />
                     </telerik:RadAjaxPanel>             </ContentTemplate>         </telerik:RadNotification>

    Please help.

  2. Answer
    Marin Bratanov
    Marin Bratanov avatar
    4441 posts

    Posted 18 Nov 2011 Link to this post

    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,
    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
  3. Alexey
    Alexey avatar
    8 posts
    Member since:
    Jun 2011

    Posted 18 Nov 2011 Link to this post


    UpdatePanel worked for me. Thanks.
Back to Top