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

[Solved] Read Only Content for RadEditor

3 Answers 331 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bharathwajan Venkatanarayanan
Top achievements
Rank 1
Bharathwajan Venkatanarayanan asked on 12 Nov 2009, 10:17 AM
In our page we used RadEditor to display the body of the mail.

We should have the RadEditor to be read only while readig the mail.

If i set Enable = "false" & width="150px", the scroll is not coming for the editor and we could see the first 10 lines of the mail body. The remaning lines are not able to see.

If I set Enable = "false" and no width porperty the RadEditor extends with respect o the mail body. we need scroll for this content.

we already tried with the following client side script in the OnClientLoad event, but this is also not workin. We are using the 2009.2.701.35 version DLL.

function OnClientLoad(editor)

{

editor.enableEditing(

false); //disable the toolbar and content area

 

}

Please provide a solution that the content should be read only with scroll.
 
Please refer the attached document which contains the screen shots of our issues.

Thanks in advance

Regards,
Bharath

3 Answers, 1 is accepted

Sort by
0
Accepted
Schlurk
Top achievements
Rank 2
answered on 16 Nov 2009, 04:21 PM
If you use the second option, setting the RadEditor's Enabled property to false, you should also set the Style property to overflow:auto. This should allow you to have a read only Editor with scrolling content.
0
Bharathwajan Venkatanarayanan
Top achievements
Rank 1
answered on 17 Nov 2009, 05:50 AM
Thanks a lot its working.....
0
Rumen
Telerik team
answered on 17 Nov 2009, 12:25 PM
Hi guys,

I just want to add that this information is available in the RadEditor documentation: Scrollable Non Editable Mode.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Bharathwajan Venkatanarayanan
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Bharathwajan Venkatanarayanan
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or