Setting the SyntaxEditorElement.IsReadOnly property to true disables editing the text inside RadSyntaxEditor. However, when opening the Find and Replace dialog, the user is still allowed to replace the text and thus change the content in the document. This shouldn't be allowed when the control is in read-only mode.
Workaround:
this.radSyntaxEditor1.SyntaxEditorElement.InputHandler = new MyInputBehavior(this.radSyntaxEditor1.SyntaxEditorElement); public class MyInputBehavior : SyntaxEditorInputBehavior { public MyInputBehavior(RadSyntaxEditorElement editor) : base(editor) { } protected override void PerformOpenFileDialog(KeyEventArgs e) { this.SyntaxEditor.SearchPanel.ReplaceAllButton.Enabled = false; this.SyntaxEditor.SearchPanel.ReplaceButton.Enabled = false; this.SyntaxEditor.SearchPanel.ReplaceTextBox.Enabled = false; base.PerformOpenFileDialog(e); } }