Unplanned
Last Updated: 10 Jun 2020 15:35 by ADMIN
Nitin
Created on: 11 May 2020 11:51
Category: RichTextEditor
Type: Bug Report
1
Bullet Points

Hi, 

Please look at the screen. when we load the attached email in Editor, bullet points are repeating. 


 

Regards,

 

Nitin Jain

3 comments
ADMIN
Tanya
Posted on: 10 Jun 2020 15:35

Hi Nitin,

Yes, you can also remove that paragraph through the Blocks collection of its parent Section:

paragraph.GetParentOfType<Section>().Blocks.Remove(paragraph);

Regards,
Tanya
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Nitin
Posted on: 08 Jun 2020 09:42

Hi Tanya, 

is this possible to remove this paragraph instead of removing it from the list only?

 

Regards,

Nitin Jain

ADMIN
Tanya
Posted on: 12 May 2020 09:23

Hello Nitin,

Thank you for the attached document.

The issue you are observing is related to the br elements inserted between the list items. They are treated as separate paragraphs and inherit the list styling of the previous paragraphs. I have logged an issue about this behavior in our public portal and you can subscribe for notifications about status changes on the task using the following item: https://feedback.telerik.com/winforms/1465510-bullet-points

What I can suggest as a workaround is to remove the list styling from the paragraphs that start with a break:

var paragraphsToRemove = this.radRichTextBox.Document.EnumerateChildrenOfType<Paragraph>().Where(p => p.IsInList && p.Inlines.First() is Break);
foreach (var p in paragraphsToRemove)
{
    p.ListId = -1;
}

this.radRichTextBox.UpdateEditorLayout();

I have updated your Telerik points in appreciation for the report.

Please, let me know if there is anything else I can assist you with.

Regards,
Tanya
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.