Hi,
Please look at the screen. when we load the attached email in Editor, bullet points are repeating.
Regards,
Nitin Jain
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
Hi Tanya,
is this possible to remove this paragraph instead of removing it from the list only?
Regards,
Nitin Jain
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