Unplanned
Last Updated: 31 Oct 2018 08:11 by ADMIN
ADMIN
Tanya
Created on: 25 Nov 2015 13:59
Category: RichTextBox
Type: Bug Report
1
RichTextBox: When pressing Backspace, negative left indent is set and the text goes out of the document's bounds
When the caret is positioned at the beginning of a paragraph with hanging indent and the user press Backspace, the left indent is set to a negative value, the text goes out of the bounds of the document. 

Workaround:
Use the editor's method instead of the command:

private void RadRichTextBox_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
    bool? parameter = e.CommandParameter as bool?;
    if (parameter != null && parameter == true)
    {
        DeleteCommand command = e.Command as DeleteCommand;
        if (command != null)
        {
            e.Cancel = true;
            this.radRichTextBox.Delete(true);
        }
    }
}
0 comments