How to add html controls to RadEditor Content Area.

3 posts, 0 answers
  1. satish
    satish avatar
    4 posts
    Member since:
    Aug 2011

    Posted 05 Sep 2011 Link to this post

    In my sharepoint application, I am using RadEditor (RadEditorSharePoint.dll V5.3.2.0) for displaying and editing the content of product. Till now I have used Rad Editor for single product only with the below code.

    for setting data:
    RadEditor.content = strProductContent

    for getting data:
    strProductContent = RadEditor.content

    In my new requirement, i need to display the content of all the products at once and user can edit all the products content at once. How to display all the data with product name and product content in a table style like

    Product1 Name
    Product1 Content.

    Product2 Name
    Product2 Content.

    Product3 Name
    Product3 Content.

    While reading the data from RadEditor, how to segregate the data. Can we use any html controls in the content area to achieve this?

    Thanks in Advance.
  2. Stanimir
    Stanimir avatar
    1654 posts

    Posted 06 Sep 2011 Link to this post

    Hello Satish,

    Could you confirm that the following scenario is the one that you are trying to achieve?

    You have a collection (or some other kind of data representation) of products. You use it to build some structured HTML content (string) from it and you load it in the editor. Then you need to constrain the user to edit only certain parts of this content. Afterwards when you save the content you need to segregate the different products from the HTML string, which the content is.

    1. I think that creating the content based on the data is not that difficult task.
    2. You can find information on constraining the user from editing certain parts in the following online help article: Editable and Non-editable Areas
    3. Parsing the HTML string back to segregated products is the challenge here. There is a big chance that the user will brake the logic of your HTML structure. Unfortunately we do not provide any automation tools that will help you here. Probably you need to ask you question in some ORM related forum or something like that.

    Best wishes,
    the Telerik team
    Learn how the Telerik controls can be integrated in SharePoint 2007/2010 from this resource. To watch them in action, explore our online SharePoint 2010 and SharePoint 2007 demo sites.
  3. satish
    satish avatar
    4 posts
    Member since:
    Aug 2011

    Posted 06 Sep 2011 Link to this post

    Hi Stanimir,

    I am trying the same scenario. Thanks for your reference on editable and non editable areas.
Back to Top