open command - is it possible to set the default document view?

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    4 posts
    Member since:
    Feb 2012

    Posted 15 May 2012 Link to this post

    Upon executing the OpenDocumentCommand, the document opens by default in "Print Layout".  Is there a parameter available for the OpenDocumentCommand to make it open in "Web Layout" instead?  If not, is there some other way to get this functionality?

    EDIT: figured this one out myself as well.  Listening for the DocumentChanged event was helpful for accomplishing this.
  2. Vasil
    Vasil avatar
    124 posts

    Posted 18 May 2012 Link to this post

    Hello Ryan,

    We are glad that you have found a solution. Otherwise, you can use the RadRichTextBox.LayoutMode property; or subscribe to RadRichTextBox.CommandExecuted event and change document's layout mode if the executed command was OpenDocumentCommand;

    Don't hesitate to contact us if you have any other questions.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top