RichTextBoxStatusbar - SelectedLayoutMode="Paged" error

3 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 22 Jun 2012 Link to this post

    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. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 25 Jun 2012 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 25 Jun 2012 Link to this post

    Hi,

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

    Regards
    Rene
Back to Top