Preview Mode First?

3 posts, 1 answers
  1. Michael O'Flaherty
    Michael O'Flaherty avatar
    67 posts
    Member since:
    Jun 2010

    Posted 23 May 2012 Link to this post

    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. Answer
    Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 24 May 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michael O'Flaherty
    Michael O'Flaherty avatar
    67 posts
    Member since:
    Jun 2010

    Posted 24 May 2012 Link to this post

    Works like a charm! Thanks!
Back to Top