WebPart error

2 posts, 0 answers
  1. Steve Holdorf
    Steve Holdorf avatar
    119 posts
    Member since:
    Apr 2010

    Posted 14 May 2012 Link to this post

    I have created a SharePoint WebPart and added the Telerik.Web.UI to it's references. When I try to open the webpart in SP I get the error: Could not load file or assembly "Telerik.Web.UI" or one of it's dependencies. I have added the Telerik dll to the webpart's bin directory and added a referance in the project. Also, I have added the <@References ... tag to the beginning of the ascx file and added a using Telerik.Web.UI in the ascx.cs file.

    Note that a webpart is just a user defined control loaded into the WebPart's controls container. This is my first time doing a webpart is there something I'm missing?

    Note Also, My controls are just the Rad ASP AJAX controls. I don't know if there is a special set of controls just for SharePoint.
  2. Rumen
    Admin
    Rumen avatar
    13804 posts

    Posted 16 May 2012 Link to this post

    Hi,

    What you can do is install RadEditor for SharePoint 2010: Installing RadEditor & RadGrid Web Parts on SharePoint 2010. Then you use the SPRadEditor class which is defined in the Telerik.SharePoint namespace of RadEditorSharePoint assembly. You can find attached here (RadEditorWebPart1.zip) an example demonstrating how to create a Visual Web Part with RadEditor for SharePoint 2010 (RadEditorSharePoint.dll). The demo is based on the solution provided in the following help article: Using RadEditor in custom MOSS solutions.

    Greetings,
    Rumen
    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