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

Automatic capitalisation after punctuation

1 Answer 51 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Cameron Molyneux
Top achievements
Rank 1
Cameron Molyneux asked on 08 Apr 2013, 09:49 AM
Guys

Is there anyway we can turn this on with the rich text control?

Or do you have any examples of how this might be achieved?

Thanks
Cameron

1 Answer, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 10 Apr 2013, 08:59 AM
Hello Cameron,
RadRichTextBox doesn't support such feature. You can try to use RadRichTextBox.KeyDown event, and detect that the user has typed specific sequence.
Another option is to use RadRichTextBox.CommandExecuted event and listed for InsertTextCommand execution:
this.radRichTextBox.CommandExecuted += (sender, e) =>
    {
        if (e.Command is InsertTextCommand)
        {
               // detect the current inserted text from e.CommandParameter
        }
    };
Note that in the latter case fast keystrokes can be combined in one command execution.

Greetings,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Cameron Molyneux
Top achievements
Rank 1
Answers by
Boby
Telerik team
Share this question
or