The state of the buttons in the ribbon is determined of the state of the command they are bound to. This, on the other hand, depends on the current context in the editor. Simply put, since the document is read-only (cannot be edited), the commands cannot be executed.
What you could do in this regard is remove the command bindings and handle the Click event of the two buttons in the ribbon. Since the methods of RadRichTextBox cannot be used in code-behind when the editor is read-only, you should take advantage of the RadDocumentEditor class and its RespectReadOnlyRanges property as follows:
sender, System.Windows.RoutedEventArgs e)
RadDocumentEditor documentEditor =
I hope this helps!
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>