How to usetelerik contol as a web part in share point.

2 posts, 0 answers
  1. atul
    atul avatar
    1 posts
    Member since:
    Sep 2008

    Posted 10 Sep 2008 Link to this post

    Hi All,

    I am new in share point and telerik control.

    I want to add telerik menu control as a web part in share point site. I want some help form any share point expert J

    Below is my c# code.


    using System;

    using System.Runtime.InteropServices;

    using System.Web.UI;

    using System.Web.UI.WebControls.WebParts;

    using System.Xml.Serialization;

    using Microsoft.SharePoint;

    using Microsoft.SharePoint.WebControls;

    using Microsoft.SharePoint.WebPartPages;

    using Telerik.Web.UI;

    namespace DynamicMenuWebPart



        public class DynamicMenuWebPart : System.Web.UI.WebControls.WebParts.WebPart


            public DynamicMenuWebPart()


                this.ExportMode = WebPartExportMode.All;




            protected override void Render(HtmlTextWriter writer)



                RadMenu menu = new RadMenu();

                menu.ID = "menu";

                RadMenuItem item = new RadMenuItem("Item1");







            protected override void CreateChildControls()









    Also added assembly ref of Telerik.Web.UI.dll, System.Web.Extensions.dll in project

    In my site web config I added entries for telerik contol are below in


          <SafeControl Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="Telerik.Web.UI" Safe="True" />



    Then I build code and run code with no error. Then when I add web part in my share point page

    I get error below

    “The "DynamicMenuWebPart" Web Part appears to be causing a problem. The control with ID 'menu' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

    Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.

    Troubleshoot issues with Windows SharePoint Services.


    Please help me to solve the problem.Please reply me how to use telerik control as web part in share point page.

  2. Sebastian
    Sebastian avatar
    9934 posts

    Posted 11 Sep 2008 Link to this post

    Hi atul,

    As the exception states, you need to add asp ScriptManager control on the page to avoid the exception. Since each control of our ASP.NET AJAX suite is built on top of the ASP.NET AJAX framework, it is a prerequisite to have ScriptManager control add to the page which hosts the corresponding RadControl.

    Further information about how to use RadControls in MOSS you can gather from the 'Integrating RadControls in MOSS' chapter in the documentation:

    Best regards,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top