Unplanned
Last Updated: 19 Jan 2018 09:26 by ADMIN
ADMIN
Created by: Anna
Comments: 0
Category: RichTextBox
Type: Feature Request
1
WMF contains both bitmap and vector elements and currently RTB supports only the bitmap parts. We should consider adding support for the vector elements as well. 
Unplanned
Last Updated: 08 Jun 2022 09:16 by ADMIN
The \sl (line spacing) RTF tag is supposed to be accompanied by a number indicating the value of the line spacing. According to the RTF specification: 

Space between lines. If this control word is missing or if \sl0 is used, the line spacing is automatically determined by the tallest character in the line. If N is a positive value, this size is used only if it is taller than the tallest character (otherwise, the tallest character is used); if N is a negative value, the absolute value of N is used, even if it is shorter than the tallest character. 


However, there are documents where the number is missing at all and MS Word interprets those as if the value is 0. RadRichTextBox visualizes these with lines of size close to zero which makes them invisible. Although this case is not mentioned in the specification, we can consider fixing it.
Completed
Last Updated: 26 Mar 2018 10:51 by ADMIN
There is a large performance hit when manipulating an area of the document with many annotation ranges in it.

Fix available in LIB Version 2018.1.326.
Unplanned
Last Updated: 12 Jan 2018 12:56 by ADMIN
When a value is selected in the FontSize combo box using the arrows and Enter, the font size of the selected text is not updated. The same scenario is working as expected when using the font size combo box from the ribbon.
Completed
Last Updated: 27 Apr 2018 12:24 by ADMIN
Undoing changes to words wrapped in annotation ranges throw InvalidCastExceptions as AnnotationRangeStarts are casted to AnnotationRangeEnd.

Steps to reproduce:
1. Add a bookmark to a word
2. Add a bookmark to the following word in the document
3. Use the find dialog to highlight those two words
4. Bold the text
5. Press Ctrl+Z to undo
Observed: Repeated InvalidCastException dialogs

Fix available in LIB Version 2018.1.430.
Unplanned
Last Updated: 04 Jan 2018 10:02 by ADMIN
If header/footer containing annotations is set to a document using RadDocumentEditor.ChangeSectionHeader or ChangeSectionFooter methods, the annotations in the body of the header/footer are not paired in the resulting document.

When such document is exported to XAML, NullReferenceException is thrown in the ReindexAnnotationMarkers internal method.

Workaround:
- Do not use RadDocumentEditor to set the footer:
//editor.ChangeSectionFooter(radDocument.Sections.First, HeaderFooterType.Default, new Footer { Body = footerRadDocument });
radDocument.Sections.First.Footers.Default.Body = footerRadDocument;

- Manually "fix" the cloned footer body before the export:
((ISupportInitialize)radDocument.Sections.First.Footers.Default.Body).EndInit();
Completed
Last Updated: 11 Jan 2018 07:14 by ADMIN
NullReferenceException is thrown when documents are exported to PDF using PdfFormatProvider in multiple threads.

Available in R1 2018 Official Release Version.
Unplanned
Last Updated: 05 Apr 2018 12:09 by ADMIN
When Justify text alignment is applied to a paragraph, it should not increase the space between word which are before the last tab symbol for each line.

Steps to reproduce:
- Open RadRichTextBox in Paged layout mode, default A4 section size
- Type the following text:
-- "Welcome Welcome Welcome Welcome Welcome "
-- then tab symbol
-- then "test1 test1 uncharacteristically"
- Switch paragraph alignment to Justify.

Expected: The space between 'Welcome' words remains the same in Left and Justify alignments.
Actual: The space between 'Welcome' words is increased when Justify alignment is chosen, as compared to when Left is chosen.
Unplanned
Last Updated: 29 Dec 2017 14:36 by ADMIN
There is a memory leak related to the referenced elements by style in the style repository from the main document. The referenced elements are from headers and footers.
Unplanned
Last Updated: 21 Dec 2017 11:38 by ADMIN
When applying a table style, the previously applied local properties to a table or cell should be cleared and the ones defined by the style should be used.

Workaround: Create a new Table and apply the style to it; then copy the properties to the existing table in the document

private void RadRichTextBox_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
    if (e.Command is ChangeStyleNameCommand && this.radRichTextBox.Document.CaretPosition.IsPositionInsideTable)
    {
        StyleDefinition style = this.radRichTextBox.Document.StyleRepository.GetValueOrNull(e.CommandParameter.ToString());
        if (style.Type == StyleType.Table)
        {
            Table currentTable = this.radRichTextBox.Document.CaretPosition.GetCurrentTableBox().AssociatedTable;
            currentTable.Borders = new TableBorders(style.TableProperties.Borders);

            Table tableWithStyle = new Table(currentTable.Rows.Count, currentTable.Rows.First.Cells.Count);
            tableWithStyle.Style = this.radRichTextBox.Document.StyleRepository.GetValueOrNull(e.CommandParameter.ToString());

            for (int rowIndex = 0; rowIndex < currentTable.Rows.Count; rowIndex++)
            {
                for (int columnIndex = 0; columnIndex < currentTable.Rows.First.Cells.Count; columnIndex++)
                {
                    TableCell cell = currentTable.Rows.Skip(rowIndex).First().Cells.Skip(columnIndex).First();
                    TableCell cellWithStyle = tableWithStyle.Rows.Skip(rowIndex).First().Cells.Skip(columnIndex).First();

                    cell.Background = cellWithStyle.Background;
                    cell.Borders = cellWithStyle.Borders;
                }
            }

            this.radRichTextBox.UpdateEditorLayout();
            e.Cancel = true;
        }
    }
}
Unplanned
Last Updated: 20 Dec 2017 14:13 by ADMIN
Tapping on a selected region in a document should show the selection mini toolbar. A second tap should clear the selection and then place the cursor on the tapped location, but this does not happen. Subsequent tap should select the entire word and another tap should select the paragraph.
Unplanned
Last Updated: 27 Mar 2018 11:56 by ADMIN
The "initial" CSS keyword applies the initial value of a property to an element. At this point, the result shown in RadRichTextBox can be unexpected as this value is not considered but the style evaluation falls back to the default styles defined for the control and doesn't consider the ones defined in the document style.

For example, setting background-color: initial; always results in black background.
Unplanned
Last Updated: 21 Dec 2017 12:11 by ADMIN
In MS Word, the users can change the alignment of a table using the buttons related to Paragraph alignment. To do that, the whole table must be selected.

In RadRichTextBox, selecting a Table and pressing one of the buttons, let say for Right alignment, leads to aligning the content of the table and not the table itself.

Workaround:
private void RadRichTextBox_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
    if (e.Command is ChangeTextAlignmentCommand &&
        this.radRichTextBox.Document.Selection.Ranges.Count == 1 &&
        this.radRichTextBox.Document.Selection.Ranges.First.RangeType == SelectionRangeType.Table &&
        e.CommandParameter.ToString() != "Justify")
    {
        e.Cancel = true;

        RadDocumentEditor editor = new RadDocumentEditor(this.radRichTextBox.Document);
        RadHorizontalAlignment newAlignment = (RadHorizontalAlignment) Enum.Parse(typeof(RadHorizontalAlignment), e.CommandParameter.ToString());
        editor.ChangeTableHorizontalAlignment(newAlignment);
    }
}

NOTE: With this approach, the toggle buttons in the UI are not updated properly and this should be additionally handled.
Unplanned
Last Updated: 20 Mar 2018 13:16 by ADMIN
Mail merge is not working for the first record in the items source when the items source is IEnumerable with deferred execution.

Workaround: convert the collection to list.
Unplanned
Last Updated: 14 Dec 2017 15:49 by ADMIN
'Decrement paragraph left indent' command can set negative left indent which makes bullets/numbering of a list clipped. Instead, it shouldn't be executed if the bullets/numbering would become invisible.

Workaround: Cancel the command in CommandExecuting event:

            this.radRichTextBox.CommandExecuting += (sender, e) =>
            {
                if (e.Command == this.radRichTextBox.Commands.DecrementParagraphLeftIndentCommand)
                {
                    if (this.radRichTextBox.Document.Selection.GetSelectedParagraphs().Any(p => p.IsInList && p.LeftIndent <= 24))
                    {
                        e.Cancel = true;
                    }
                }
            };
Completed
Last Updated: 16 May 2019 14:09 by ADMIN
The exception is thrown by the SystemFontsManager internal class from Telerik.Windows.Documents.Core, so it can observed when using RadPdfViewer, RadRichTextBox, RadSpreadsheet.

The reason is not clear, posssible causes are:
- Corrupted fonts after upgrade from Windows XP
- Enabling of Block untrusted fonts feature (https://docs.microsoft.com/en-us/windows/threat-protection/block-untrusted-fonts-in-enterprise )

The call stack is as follows:

System.TypeInitializationException: The type initializer for 'Telerik.Windows.Documents.Core.Fonts.SystemFontsManager' threw an exception. ---> System.IO.FileNotFoundException: Unable to find the specified file.
   at MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32 hr)
   at MS.Internal.Text.TextInterface.FontList.get_Item(UInt32 A_0)
   at MS.Internal.Text.TextInterface.FontList.FontsEnumerator.get_Current()
   at MS.Internal.FontFace.TypefaceCollection.Enumerator.get_Current()
   at System.Windows.Media.Fonts.TypefaceCollection.<GetEnumerator>d__11.MoveNext()
   at Telerik.Windows.Documents.Core.Fonts.SystemFontsManager..cctor()

Workaround: 

Manually delete all registry key values in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts pointing to files outside of the Fonts folder.
Completed
Last Updated: 26 Dec 2017 12:27 by ADMIN
NullReferenceException is thrown when some of the parts in the template of SelectionMiniToolBar are missing, e.g. bold button, italic button, etc.; and selected text properties are changed while the selection mini tool bar is still opened, for example by clicking buttons in the ribbon UI.

Available in LIB Version 2017.3.1225.
Unplanned
Last Updated: 04 Dec 2017 10:21 by ADMIN
ADMIN
Created by: Boby
Comments: 0
Category: RichTextBox
Type: Feature Request
1
Show a preview of how a feature affects the document as the user hovers over the different options in the user interface, e.g.:
- when a style is hovered in the styles gallery, temporarily apply the style to the affected text; 
- when a font size is hovered in the font size combo (in the ribbon or in the SelectionMiniToolBar), temporarily apply the hovered font size to the affected text.
Completed
Last Updated: 18 Dec 2017 12:36 by ADMIN
SelectionMiniToolBar and ImageMiniToolBar stay visible when keys associated with commands bindings are pressed, for example:
- When Delete key is pressed
- When arrow keys are pressed

The expected behavior is mini tool bars to hide on each key press.

Fix available in LIB Version 2017.3.1211.
Unplanned
Last Updated: 01 Dec 2017 14:34 by ADMIN
Currently, blockquote tags are imported as paragraphs. Change the mechanism so they can be imported as citations.