RadNotification Control Not in ToolBox

6 posts, 0 answers
  1. Nathan
    Nathan avatar
    52 posts
    Member since:
    Apr 2011

    Posted 22 Sep 2011 Link to this post

    Hello,

    I have downloaded the update through visual studio, but I still dont have the "RadNotification" control in my toolbox. Also it's not recognized through code. Could you please explain how I can get this control? I have the RadControls for ASP.NET AJAX (.NET 3.5).

    Thanks!
  2. Nathan
    Nathan avatar
    52 posts
    Member since:
    Apr 2011

    Posted 22 Sep 2011 Link to this post

    Updated project and I can now access the RadNotification from code, but still not in toolbox.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 23 Sep 2011 Link to this post

    Hello Nathan,

    Give the instructions from this help article: http://www.telerik.com/help/aspnet-ajax/introduction-adding-to-vs-toolbox-net4.html a try and see if you can update the toolbox like this. From what I can gather it seems that you have only downloaded the new DLLs and have not installed the full suite from the msi file, which is the most probable reason why the new set of tools has not been added to the VS toolbox.


    All the best,
    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
  5. Nathan
    Nathan avatar
    52 posts
    Member since:
    Apr 2011

    Posted 23 Sep 2011 Link to this post

    Thank you for you fast response! I started following the instructions and noticed I had two sections of toolbox items for RadControls. I removed the Q1 section and now only have the Q2 which has RadNotification control.

    Thanks for you help!!
  6. Nathan
    Nathan avatar
    52 posts
    Member since:
    Apr 2011

    Posted 23 Sep 2011 Link to this post

    One more thing, I created a sample page with the RadNotification control just like the "Session Timeout Notification" demo example. However, when I copied the source code I put the "<Script>" section in the <HEAD>" where I normally put all scripts, but this caused problems with the page. But, when I put the script under the "RadScriptManager", exactly like the example, it worked. Could you explain why the scripts must be placed under the "RadScriptManager" and not in the "Head"?

    http://demos.telerik.com/aspnet-ajax/notification/examples/sessiontimeout/defaultcs.aspx

    <body class="BODY">
        <form id="form1" runat="server">

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <script type="text/javascript">
                ... Scripts go here.
        </script>

       <telerik:RadNotification ID=.... />



    Thanks!!
  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 26 Sep 2011 Link to this post

    Hi Nathan,

    The error I believe you have seen is that "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).". This is a general issue in ASP and AJAX when server code blocks are used in the head section and is not directly related to the RadNotification. The general solution for this error  is to move the scripts in the body, or you can wrap them in a RadCodeBlock control.


    All the best,
    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017