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

RadHtmlField & Fieldname

5 Answers 42 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Zahidi
Top achievements
Rank 1
Zahidi asked on 10 Aug 2012, 01:12 AM
Hi!

I'm currently working on creating RadHtmlField(editor) programatically on a sharepoint 2007 page with following

Requirements:-

1) The editor is created based on how many user requires. Example, If he/she wants 10 editors, he/she will get 10 editors that comes together with a textbox each, as editor title in the page.

Current settings:-

1) Both editors and textboxes are wrapped in a usercontrol.
2) The usercontrol Fieldname is set to "Content". The [Content] is one of the page layout content type.
3) In code behind, the editors are created with no Fieldname.
4) Each editors.html and textboxes.value will be assigned from [Content] value that being serialized based on indexes.

Problems:-

1) Every time the editors are rendered, its fieldname picks up usercontrol's Fieldname "Content" value.
2) This will overwrite editors.html value that being assigned previously. Thus It will always display the last editors.html when publish.
3) If i assigned a dummy value for each editor's Fieldname, the editor will not show up

Is there anywhere that i can achieve the requirements or workarounds that can make it happens? Since, there is no reference for RadHtmlField anywhere in the internet, i really need your help.

Telerik.Web.UI version: 2010.3.1317.20, RadEditorSharepoint version: 2.0.50727

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Aug 2012, 11:37 AM
Hi,

When it comes to SharePoint 2010 we always recommend using the specially designed RadEditor for SharePoint 2010, instead of the regular RadEditor for ASP.NET AJAX.

In order to use it, install the RadEditor for SharePoint 2010: http://www.telerik.com/help/aspnet-ajax/moss-installing_radeditor__radgrid_web_parts_on_sharepoint_2010.html. Then in you custom web solution you can use the SPRadEditor class, which is defined in the Telerik.SharePoint namespace of the RadEditorSharePoint assembly.

Best regards,
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.
0
Zahidi
Top achievements
Rank 1
answered on 14 Aug 2012, 01:37 PM
I'm using sharepoint2007 and I cannot simply upgrade the current version. Is there any solution to my problem using only my current version. Please help..
0
Rumen
Telerik team
answered on 14 Aug 2012, 01:51 PM
Hello,

You can see how to use MOSSRadEditor in SharePoint 2007 (MOSS) in the following article: Using RadEditor in custom MOSS solutions.

Kind regards,
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.
0
Zahidi
Top achievements
Rank 1
answered on 26 Sep 2012, 08:12 AM
Hi there,

i tried using MOSSRadEditor but i was stuck when trying to get [content] property. This maybe because i am using RadEditorSharePoint.dll version 5.8.6.0. Anyway that i can solve this?
0
Rumen
Telerik team
answered on 28 Sep 2012, 01:35 PM
Hi,

You can upgrade to the latest one 5.8.16 and test it. Migration instructions are available in this help article: Upgrading to a newer version of RadEditor for MOSS.

Kind regards,
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
Editor
Asked by
Zahidi
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Zahidi
Top achievements
Rank 1
Share this question
or