Unplanned
Last Updated: 05 Sep 2019 10:17 by ADMIN
When deleting all content (e.g. Select All [CTRL+A] + Delete [Del]) in the document, it would be convenient for the user to preserve all formatting (local span formatting + local paragraph formatting + style) applied on the last paragraph. 

This will ensure that the user will continue edit the document with last current font, font family, etc.

If this operation is applied on an empty document, though, the styling of the single paragraph should be reset to the defaults for the document.
Unplanned
Last Updated: 26 Aug 2019 11:41 by ADMIN
When trying to import a document containing bookmark and BookmarkRangeEnd is after the last paragraph, a StackOverflowException is thrown in IntervalNode while trying to rebuild the document cache. (RadDocumentChildrenCache.RebuildTree()).

The same could be observed if the bookmark end is last in the header/footer, between table cells in the RadDocument body, or when all paragraphs after the bookmark range end are hidden (with vanish property).

Workaround: Detect the problematic annotations and remove them:
foreach (var rangeStart in document.EnumerateChildrenOfType<AnnotationRangeStart>())
{
    if (rangeStart.End == null || rangeStart.End.Parent == null || rangeStart.End.Parent.Parent == null)
    {
        //MessageBox.Show("This indicates a problem.");
        rangeStart.Parent.Children.Remove(rangeStart);
    }
}

Note: Until 2017 R2 SP1 release StackOverflowException is thrown, after this release an ArgumentException should be thrown.
Declined
Last Updated: 16 Aug 2019 15:22 by ADMIN
Created by: Stephen
Comments: 5
Category: RichTextEditor
Type: Feature Request
0

Dear Sir/Madam,

 

I have a docx document and want to display it in flow layoutmode. It works normally except it cannot show header at the beginning of the document and footer at the end of the document. Please help.

My code is similar as follows (Rte is the RadRichTextEditor control):

 

DocumentFormatProviderBase provider = new DocxFormatProvider();

Rte.SuspendLayout();

Rte.Document = provider.Import([Docx in byte array]);

Rte.RichTextBoxElement.BackColor = Color.White;

Telerik.WinControls.RichTextEditor.UI.DocumentWebLayoutPresenter presenter = (Telerik.WinControls.RichTextEditor.UI.DocumentWebLayoutPresenter)rte.RichTextBoxElement.ActiveEditorPresenter;

presenter.BackColor = Color.White;

presenter.Margin = new Padding(20);

Rte.ResumeLayout();

Rte.PerformLayout(); 

Completed
Last Updated: 22 Jul 2019 13:57 by ADMIN
Release R3 2019 (LIB 2019.2.729)

To reproduce:

Type a word and then change the font. The RichTextEditor is not focused. When you click in it the font is restored.

Workaround: 
class MyRichtTextEditorRibbonbar : RichTextEditorRibbonBar
{
    public MyRichtTextEditorRibbonbar()
    {
        this.dropDownListFont.PopupClosed += DropDownListFont_PopupClosed;
    }

    private void DropDownListFont_PopupClosed(object sender, RadPopupClosedEventArgs args)
    {
        this.associatedRichTextEditor.Focus();
    }

  
}

 

Unplanned
Last Updated: 01 Jul 2019 07:38 by ADMIN
The dialog should match the strings contained in the different document parts (headers, footers, footnotes, endnotes, comments).
Completed
Last Updated: 01 Jul 2019 15:00 by ADMIN
Release R3 2019 (LIB 2019.2.708)
Created by: Tomasz
Comments: 6
Category: RichTextEditor
Type: Bug Report
0

1. Document created via MS-Word, Page orientation is set to Landscape. (MS-Word works OK)

2. Document read into Telerik RichTextEditor and print ignore Landscape settings.

3. Documet "Landscape.rtf" and snapshot in attachmet 

please help me 

Unplanned
Last Updated: 12 Jun 2019 13:58 by ADMIN

Please refer to the attached gif file.

Let's take for instance demo application with its default document, with text "RadRichTextEditor for WinForms" at the beginning in font Calibri of size 28. Suppose the user wants to add A, then empty line, then C in single line, followed by the rest of the document, and to have these three new lines in Times New Roman in size 10.

If there is no empty line, but letter B in middle line, then user can set caret to document start, set the font and size, and type A<Return>B<Return>C<Return>. And it would look fine (and even then, if we set caret just after B and press Return the new paragraph will have spacing after set to 7.5 for no apparent reason).

If we want an empty line instead of B in the line, then there is no simple way to do it. Typing A<Return><Return>C<Return> would produce a huge gap between A and C (we still first set the caret, and font and size). One way to accomplish what we want is to select all new text, set font size to something other than 10, and then back to 10 (which is also weird to have to do).

Completed
Last Updated: 31 May 2019 10:26 by ADMIN
Release R2 2019 SP1 (LIB 2019.2.603)
Created by: Mihajlo
Comments: 4
Category: RichTextEditor
Type: Bug Report
1

In R2 2019 RichTextEditor has a new GUI element, a toggle button named Simplified Ribbon. It looks neat, and I like it, but now I have to localize it. There is a link to a strings file on page https://docs.telerik.com/devtools/winforms/controls/richtexteditor/localization , but I can't find the text "simplified ribbon" in that xml file.

My fallback plan is to download the whole Telerik source code, I'm just reminding you here to update the file. And to ask you to update the file together with Telerik update in the future.

Completed
Last Updated: 27 May 2019 10:37 by ADMIN
Release Fixed in R2 2019 (2019.2.527)
Completed
Last Updated: 23 Feb 2021 10:38 by ADMIN
Release R1 2021 SP2

Right-click on header/footer usually does nothing. If we double-click them we enter their edit mode. After we close header and footer and right-click on them we get context menu as if we are still in edit mode. If we scroll out of view of header/footer, and then back in, right-click will again do nothing.

Also, separate but similar bug, in demo document's footer there is a three-column table. It is possible to resize with the mouse all the columns widths, and even the row height. Mouse will change shape, as if in edit mode. It is not necessary to enter and leave edit mode like in previous case, the error is observable from the start. But if we scope out and scope back in the changes are undone, in a way like in previous case.

Completed
Last Updated: 14 Feb 2019 12:37 by ADMIN
If we open paragraph properties dialog and then Tabstops properties dialog, and then close the second one the first one will also close automatically.
Completed
Last Updated: 14 Feb 2019 16:13 by ADMIN
Created by: Mihajlo
Comments: 2
Category: RichTextEditor
Type: Bug Report
1

I added this line just before Application.Run(new MainForm()); in Word-inspired project:

RichTextBoxLocalizationProvider.CurrentProvider = RichTextBoxLocalizationProvider.FromFile(@"AllCapsRichTextBoxStrings.xml");

 

I took RichTextBoxStrings.xml from localization page of RichTextEditor. In the xml file I converted all the text between <value> tags to uppercase, and also replaced "OK" (value of "Confirm" data element) with "AYE". I expected all the OK's in all the forms within rich text editor to be replaced, but they all remained as "Ok" (note the lower case "k" here). Well, all except Page Layout > Columns form, which did display AYE, and also References > Insert citation. So, here are the issues that I found:

  • XML file in localizaiton page of RichTextEditor is missing entries for resources "Ok", "Insert", and "Apply".
  • "Ok" resource is used in most places, but "Confirm" resource (with value "OK") is used in AddNewBibliographicSourceDialog.cs and SectionColumns\SectionColumnsDialog.cs. This seems inconsistent.
  • Paper sizes are not localizable, which is actually fine by me for all but the last paper size, "Size14x10", but then what is the purpose of all RibbonUI_PaperSizeXxx resources in resource file?
  • Value of resource "Documents_InsertHyperlinkDialog_SelectionInDocument" is weird. Not sure this resource should even exist, as I could not make it appear in the InsertHyperlinkDialog. Looks like a dummy placeholder.
  • Fallback mechanism for missing resources is weird. If resource is missing the resource name is returned as resource value, which is the reason why Ok, Insert, and Apply are actually shown. Maybe this is intentional, if resource is missing it will be obvious (for unusual resource names). Alternative would be not to change the string at all, as it is already set to default english in .Designer.cs file anyway. So instead of "this.someTextBox.Text = LocalizationManager.GetString("Some_Resource");" it would be something like "this.someTextBox.Text = LocalizationManager.GetString("Some_Resource", this.someTextBox.Text);".

To create AllCapsRichTextBoxStrings.xml, make a copy of provided resource file, open it in Notepad++ and replace all <value>([^<]*)</value> with <value>\U\1\E</value> using regular expressions, and then replace all &AMP;, &LT; and &GT; with &amp;, &lt; and &gt;.

Completed
Last Updated: 03 May 2019 09:58 by ADMIN
Importing html documents having the property vertical-align property used with length values - for example: vertical-align = 3px, throws InvalidCastException. 
Unplanned
Last Updated: 17 Jan 2019 09:50 by ADMIN
RadRichTextEditor: MoveToDocumentElementStart works incorrectly when called consecutively with PermissionRangeStart as parameter
When the MoveToDocumentElementStart is called with parameter that is PermissionRangeStart and then is called a second time, the position moves to the previous position instead.


Completed
Last Updated: 13 Mar 2019 14:58 by ADMIN
Release 2019.1.219
When the document is protected, CommandExecuting is not raised when the user double clicks the header or footer area.
Completed
Last Updated: 03 Dec 2018 17:22 by Dimitar
Completed
Last Updated: 13 Mar 2019 16:37 by ADMIN
Release 2019.1.117
To reproduce: 
var d = new RadDocument();
var s = d.GetStatisticsInfo();

Workaround:
var d = new RadDocument();

if (d.Sections.Count > 0 && d.Sections.Last.Blocks.Count >0)
{
    var s = d.GetStatisticsInfo();
}  
Unplanned
Last Updated: 02 Oct 2018 07:33 by ADMIN
Currently invalid attribute values, including invalid or empty values in CSS attributes in the 'style' attribute, could cause importing property with incorrect value, or NullReferenceException (the document cannot be imported).
Examples:
----------------------------------------------------------
<table width=”*”>
	<tr>
		<td>More Random Text</td>
	</tr>
</table>

The table is imported with 0 width. Instead the width should not be set.
----------------------------------------------------------
<table style="font-size:;">
	<tr>
		<td>More Random Text</td>
	</tr>
</table>

NullReferenceException is thrown.
----------------------------------------------------------
<p style='padding: 3px 3px 3xp 7px;'>test</p>

IndexOutOfRangeException is thrown.

----------------------------------------------------------

 

Workaround: replace the invalid values before import: string importString = html.Replace("font-style: ;", "");
Unplanned
Last Updated: 25 Sep 2018 07:10 by ADMIN
ADMIN
Created by: Hristo
Comments: 0
Category: RichTextEditor
Type: Feature Request
1
The field result shows the number of pages the current section contains.