Scrollable Non Editable Mode | RadEditor for ASP.NET AJAX Documentation
Edit this page

Scrollable Non Editable Mode

When RadEditor is set in non-editable mode (Enabled="false") it is displayed as a simple DIV element and contains the value of its Content property. To prevent the resizing of the content and display scrollbars around the DIV element, set the Style property of RadEditor to overflow: scroll or overflow: auto.

<style type="text/css">
    .MyEditor {
        overflow: scroll;
        border: 1px solid red;

<telerik:RadEditor RenderMode="Lightweight" runat="server" ID="RadEditor1" Enabled="false" CssClass="MyEditor" Width="75px" Height="100px">
   <strong>Line 1</strong><br />
   <strong>Line 2</strong><br />
   <strong>Line 3</strong><br />
   <strong>Line 4</strong><br />
   <strong>Line 5</strong><br />
   <strong>Line 6</strong><br />
   <strong>Line 7</strong>

The rendered output for the ASP.NET markup above is:

<!-- The overflow:scroll and the border rules can be found via the browser's HTML inspector as they do not exist as inline styles -->
<div id="RadEditor1" class="MyEditor" style="border: 1px solid red; height: 100px; width: 75px;">
   <strong>Line 1</strong>
   <br />
   <strong>Line 2</strong>
   <br />
   <strong>Line 3</strong>
   <br />
   <strong>Line 4</strong>
   <br />
   <strong>Line 5</strong>
   <br />
   <strong>Line 6</strong>
   <br />
   <strong>Line 7</strong>
Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article