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

WebPart error

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve Holdorf
Top achievements
Rank 1
Steve Holdorf asked on 14 May 2012, 08:12 PM
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.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 May 2012, 11:36 AM
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.
Tags
General Discussions
Asked by
Steve Holdorf
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or