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

Custom RadEditor Webpart

4 Answers 79 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 28 Mar 2011, 12:37 PM
Hi there

I'm trying to create a custom Webpart which should work similar to the "Telerik RadEditor for Moss", but with some kind of extended functionality. Also it has to derive from a custom Webpart Base Class which we use in the Project. This base class derives itself from System.Web.UI.WebControls.WebParts.WebPart

I found this tiny bit of documentation here:
http://www.telerik.com/help/aspnet-ajax/moss-radeditor-in-custom-moss-solutions.html

Is there any more documentation about this somewhere, because i don't know  whats is actually needed for the MossRadEditor class to be used within an Weppart. This class is also missing from the API Reference. So i looked with the .net Reflector into the code of the Telerik.SharePoint.RadEditorWebPart, but i'm stuck a little. I don't know what is necesary for me to get it working. Also this WebPart is based on Microsoft.SharePoint.WebPartPages.WebPart which is different somehow.

So far am having a WebPart and a correspondending EditorPart. The Webpart creates a MOSSRadEditor Object, a Literal Control to Show the Content in Display mode, and a Text Field which should save the actuall content.

The EditorPart adds the MOSSRadEditor Objects to the WebPart Controls Collection which works so far. But when i want to save the created content in the ApplyChanges Method of the Editor Part, i can't manage to get the field from which i could read the actual content.

I notice there is some Java Script involved in the RadEditorWebPart class, but i don't know if i need that. Also i'm having trouble setting the ToolsFile Property of the MOSSRadEditor Object. Whenever i do, i get an IO Exception, whereas setting the ConfigFile property is no problem. The File i want to set is definetaly there. I'm using version 5.8.5 of the RadEditorSharepoint.dll

4 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 29 Mar 2011, 02:51 PM
Hi Roger,

The article, which you point in your post is for the classic version or RadEditor for MOSS 4.x. It looks like we did not update our documentation correctly (Thank you for the provided information). However the only difference is that instead of RadEditor.Net2 reference you need  to refer the Telerik.Web.UI assembly. If you rename RadEditorMOSS.wsp to RadEditorMOSS.cab and extract the files you will find the RadEditorSharePoint.dll and Telerik.Web.UI.dll files, which you can use in your custom Web Part project.





Best wishes,
Stanimir
the Telerik team
0
Roger
Top achievements
Rank 1
answered on 29 Mar 2011, 03:51 PM
Hi Stanimir

Thanks for your answer. But actually the references are not my problem. I've already managed to reference the right assemblies

Please don't get my wrong, but could you read my post again and see what problems i have..

Thanks & Greetz

Roger


0
Stanimir
Telerik team
answered on 31 Mar 2011, 01:17 PM
Hi Roger,

What I suggest you to do is open an official support ticket. Then if your license information is valid, I will provide you with the source code of RadEditor for SharePoint wsp solution. There you will be able to review how the webpart is created. Right now I can see that there are no purchases related to your account, so if you purchased the controls from other account, contact our sales team to add this information to the current one.


All the best,
Stanimir
the Telerik team
0
Roger
Top achievements
Rank 1
answered on 06 Apr 2011, 10:11 AM
Hi Stanimir

i could manage to get the web part working by now. even the toolsfile is no problem anymore - so no further help is needed. Thanks for your help.

Greetz Roger
Tags
WebParts for SharePoint
Asked by
Roger
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Roger
Top achievements
Rank 1
Share this question
or