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

Tabstop behaviour

1 Answer 66 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
Ralf
Top achievements
Rank 1
Ralf asked on 21 May 2015, 01:47 PM

Hello,

i have a RadRichEditor with tabstops set. 

When i press the Tab key on a blank line, then a indent is inserted. The cursor should jump to the tabstop.

When i write a char and press than tab, the cursor jump to the tabstop.  Why is that?

See pictures what i mean ...

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 22 May 2015, 10:16 AM
Hello Ralf,

Thank you for writing.

I was able to reproduce the observed issue. I have logged it in our Feedback Portal. You can track the item for status changes and add your vote for it here.

To workaround this you should replace the IncrementParagraphLeftIndentCommand with TabForwardCommand:
void radRichTextEditor1_CommandExecuting(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
    if (e.Command is IncrementParagraphLeftIndentCommand)
    {
        e.Cancel = true;
        TabForwardCommand tabForward = new TabForwardCommand(this.radRichTextEditor1.RichTextBoxElement);
        tabForward.Execute();
    }
}

Your Telerik Points have been updated for this report.

Should you have any other questions do not hesitate to ask.


Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
RichTextEditor
Asked by
Ralf
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or