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

How to add html controls to RadEditor Content Area.

2 Answers 64 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
satish
Top achievements
Rank 1
satish asked on 05 Sep 2011, 03:42 PM
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 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 06 Sep 2011, 07:51 AM
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,
Stanimir
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.
0
satish
Top achievements
Rank 1
answered on 06 Sep 2011, 02:04 PM
Hi Stanimir,

I am trying the same scenario. Thanks for your reference on editable and non editable areas.
Tags
WebParts for SharePoint
Asked by
satish
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
satish
Top achievements
Rank 1
Share this question
or