RadHtmlField & Fieldname

6 posts, 0 answers
  1. Zahidi
    Zahidi avatar
    3 posts
    Member since:
    Aug 2012

    Posted 09 Aug 2012 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    14370 posts

    Posted 14 Aug 2012 Link to this post

    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.
  3. Zahidi
    Zahidi avatar
    3 posts
    Member since:
    Aug 2012

    Posted 14 Aug 2012 Link to this post

    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..
  4. Rumen
    Admin
    Rumen avatar
    14370 posts

    Posted 14 Aug 2012 Link to this post

    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.
  5. Zahidi
    Zahidi avatar
    3 posts
    Member since:
    Aug 2012

    Posted 26 Sep 2012 Link to this post

    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?
  6. Rumen
    Admin
    Rumen avatar
    14370 posts

    Posted 28 Sep 2012 Link to this post

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