IsReadOnly but not for "DEL"

2 posts, 0 answers
  1. Vinicius
    Vinicius avatar
    9 posts
    Member since:
    Dec 2011

    Posted 01 Feb 2012 Link to this post

    Hi there,
    Im using the RadRichTextBox and sometimes i need to use it for Read Only, but the key "DELETE" keep erasing the text after i set that property (IsReadOnly = true). I also tried to cancel the event doing this:

            private void radRichTextBox1_KeyDown(object sender, KeyEventArgs e)
                if (e.KeyCode == Keys.Delete) e.Handled = true;

    But it steel erasing my text, how can i fix it?
  2. Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 03 Feb 2012 Link to this post

    Hello Vinicius,

    We were not able to reproduce the behavior you have described in RadRichTextBox for Silverlight. We would appreciate some more details such as the version of the controls you are using and steps to reproduce.

    On a side note, in the snippet you have posted you are using the KeyCode property of KeyEventArgs. The KeyEventArgs in Silverlight and WPF do not have a KeyCode property. Perhaps you are using RadRichTextBox for Winforms? If that is the case, please post your question in the Winforms forum.

    Iva Toteva
    the Telerik team

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

Back to Top