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

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

1 Answer 47 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 15 May 2012, 05:13 PM
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.

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 18 May 2012, 01:17 PM
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.

Greetings,
Vasil
the Telerik team

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

Tags
RichTextBox
Asked by
Ryan
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or