Custom RadEditor Webpart

5 posts, 0 answers
  1. Roger
    Roger avatar
    3 posts
    Member since:
    Mar 2011

    Posted 28 Mar 2011 Link to this post

    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
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 29 Mar 2011 Link to this post

    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

  3. Roger
    Roger avatar
    3 posts
    Member since:
    Mar 2011

    Posted 29 Mar 2011 Link to this post

    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


  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 31 Mar 2011 Link to this post

    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
  5. Roger
    Roger avatar
    3 posts
    Member since:
    Mar 2011

    Posted 06 Apr 2011 Link to this post

    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
Back to Top