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

RichTextBoxStatusbar - SelectedLayoutMode="Paged" error

2 Answers 44 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 22 Jun 2012, 01:59 PM
Hi,

is there a know problem with the RadRichTextStatusBar + SelectedLayoutMode?
i tried:
<telerik:RadRichTextBoxStatusBar Grid.Row="4" AssociatedRichTextBox="{Binding ElementName=editor, Mode=OneTime}" telerik:StyleManager.Theme="Metro" SelectedLayoutMode="Paged" Name="EditorStatusBar" />

This cause an error:
NullReferenceException in StatusBar!

Is it not possible to set this Option in xaml or c#? Without this Option the Editor and StatusBar is working great!
Thanks
Regrads
Rene

2 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 25 Jun 2012, 02:15 PM
Hi Rene,

The LayoutMode of RadRichTextBox is controlled by the LayoutMode property of the editor. The binding of RadRichTextStatusBar to the editor will ensure that the correct option would be selected in the status bar.
That is why setting the SelectedLayoutMode property of the status bar is not normally done.

Please, try using this approach and let us know if you experience any other issues.

Greetings,
Iva Toteva
the Telerik team

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

0
ITA
Top achievements
Rank 1
answered on 25 Jun 2012, 07:28 PM
Hi,

thank's a lot solved:
editor.Document.LayoutMode = DocumentLayoutMode.Paged;

Regards
Rene
Tags
RichTextBox
Asked by
ITA
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
ITA
Top achievements
Rank 1
Share this question
or