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

Preview Mode First?

2 Answers 43 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Michael O'Flaherty
Top achievements
Rank 2
Michael O'Flaherty asked on 23 May 2012, 08:36 PM
Hi!

When programmatically setting the content, is there a way to start in Preview mode first and make the Design mode secondary? (We hide the HTML mode.)

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 24 May 2012, 02:05 PM
Hi,

You can start RadEditor in Preview mode using

<telerik:RadEditor ID="RadEditor1" runat="server" EditModes="Design,Preview" OnClientLoad="OnClientLoad"></telerik:RadEditor>
  
<script type="text/javascript">
    function OnClientLoad(editor, args)
    {
        editor.set_mode(4); // set editor in preview mode
    }
</script>

but you cannot change the position of the buttons except by using some hack.

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.
0
Michael O'Flaherty
Top achievements
Rank 2
answered on 24 May 2012, 08:10 PM
Works like a charm! Thanks!
Tags
Editor
Asked by
Michael O'Flaherty
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Michael O'Flaherty
Top achievements
Rank 2
Share this question
or