Under Review
Last Updated: 23 Jan 2025 12:37 by ADMIN

Hello there,

I am facing system.StackOverflowExcepiton while exporting document with HtmlFormatProvider. I am attaching my code with the HTML string which I am passing into RichTextEditor.

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

HTML String:

"Navigate to the <a href="https://exelon.ifs.cloud/landing-page/" target="_blank"><b><u>IFS Cloud Landing Page</u></b></a>.<br /> <br />NOTE: If the above link does not work for you, copy and paste this address ...<br /> <br /><u>https://exelon.ifs.cloud/landing-page/</u>"

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

Method which is giving me an error:

               

internal static string GetRadRichTextEditorHtmlValue(RadRichTextEditor radRichTextEditor, bool RemoveNewLineSpace = false, bool withDocumentChange = true, bool removeLastParagraphLine = false, bool fromDefinationEditor = false, bool OnlyHtml = false, bool fromDynamicAssetDefinition = false)
        //internal static string GetRadRichTextEditorHtmlValue(RadRichTextEditor radRichTextEditor, bool RemoveNewLineSpace = false, bool withDocumentChange = true, bool removeLastParagraphLine = false, bool fromDefinationEditor = false,bool OnlyHtml=false)
        {
            string htmlValue = string.Empty;

            try
            {
                if (radRichTextEditor == null)
                    return "";

                Telerik.WinForms.Documents.Model.RadDocument document = radRichTextEditor.Document;
                Telerik.WinForms.Documents.FormatProviders.Html.HtmlFormatProvider provider = new Telerik.WinForms.Documents.FormatProviders.Html.HtmlFormatProvider();
                if (withDocumentChange)
                {
                    //Telerik.WinForms.Documents.FormatProviders.Html.HtmlExportSettings htmlExportSettings = new Telerik.WinForms.Documents.FormatProviders.Html.HtmlExportSettings();
                    //htmlExportSettings.ExportHeadingsAsTags = true;
                    //provider.ExportSettings = htmlExportSettings;
                    //htmlExportSettings.PropertiesToIgnore["h1"].Add("Heading1");
                    provider.ExportSettings.DocumentExportLevel = Telerik.WinForms.Documents.FormatProviders.Html.DocumentExportLevel.Fragment;
                    provider.ExportSettings.ExportFontStylesAsTags = true;
                }
htmlValue = provider.Export(document); // Exception place.
                if (withDocumentChange)
                {
                    string strikeClassName = GetStrikeClassName(htmlValue);
                    htmlValue = GetTagValueFromHtmlString(htmlValue, fromDefinationEditor, fromDynamicAssetDefinition);
                    htmlValue = StripHtmlExceptFontTags(htmlValue, strikeClassName, RemoveNewLineSpace, OnlyHtml);
                }
                document.Dispose();
            }
            catch (Exception ex)
            {
                ClickLearn.Exceptions.ExceptionToEventLog(ex, "GetRadRichTextEditorHtmlValue");
            }

            // TO DO: Remove below condition when <br/> issue fixed fom editor
            if (htmlValue.IndexOf("<br />") == 0 || htmlValue.IndexOf("</ br>") == 0)
            {
                htmlValue = htmlValue.Substring(6);
            }
            else if (htmlValue.IndexOf("<br/>") == 0 || htmlValue.IndexOf("</br>") == 0)
            {
                htmlValue = htmlValue.Substring(5);
            }

            if (!string.IsNullOrEmpty(htmlValue))
            {
                htmlValue = RemoveLastNewLine(htmlValue);
            }

            return htmlValue;
        }

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

Control's properties:

ucRichTextBox ucRichTextBox2 = new ucRichTextBox(tagCommand.Tags, ce.CurrentLCID, true, MetadataProperties, ArgInfoList);
ucRichTextBox2.spd = spd;
ucRichTextBox2.Tag = tagCommand.Tags;
ucRichTextBox2.Name = "ucRichTextBox2";
ucRichTextBox2.Left = sx;
ucRichTextBox2.Top = y;
ucRichTextBox2.Width = pnlSPD.Width - leftPadding - rightPadding;
ucRichTextBox2.btnUnlock.Click += BtnUnlock_Click;
ucRichTextBox2.btnUnlock.Image = Properties.Resources.c_full;
ucRichTextBox2.btnUnlock.Tag = "c_full";
ucRichTextBox2.btnLockOption.Visible = true;
ucRichTextBox2.btnLockOption.BringToFront();
ucRichTextBox2.btnLockOption.MouseDown += BtnLockOption_MouseDown;
ucRichTextBox2.btnLink.Click += BtnLink_Click;
ucRichTextBox2.rtxContent.CommandExecuting += RtxContent_CommandExecuting;
ucRichTextBox2.btnSetting.ButtonElement.ToolTipText = argInfoUX12.ConfigDoc.ContainsKey

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

UI for the control:

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

Error message:

 

In Development
Last Updated: 21 Jan 2025 16:37 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
Created by: Liang Sime
Comments: 1
Category: UI for WinForms
Type: Bug Report
0
Me.radToggleSwith1.OffText = "OFF"
Me.radToggleSwith1.OnText = "ON"
In Development
Last Updated: 21 Jan 2025 13:01 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
Created by: Xinchen
Comments: 1
Category: NavigationView
Type: Bug Report
0
When select the last item in the navigationview, the scrollbar jumps to the middle.
In Development
Last Updated: 20 Jan 2025 16:18 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)

System.ArgumentException: 'An item with the same key has already been added.' when the data source contains DateTime with the same hour, minute, and seconds part (only milliseconds are different):

 

In Development
Last Updated: 20 Jan 2025 15:19 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
Unplanned
Last Updated: 20 Jan 2025 09:09 by ADMIN
Created by: Suresh
Comments: 1
Category: PropertyGrid
Type: Bug Report
0

When using the AnchorStyles property, the editor does not update the anchors as expected:

Image

Unplanned
Last Updated: 16 Jan 2025 11:05 by Emanuele
Created by: Phil Lindquist
Comments: 2
Category: Menu
Type: Feature Request
2

The default MS ContextMenuStrip shows tooltips for disabled menu items:

In Development
Last Updated: 15 Jan 2025 14:44 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
Calling the BestFitColumns() method after setting the DataSource will not resize the columns. The method logic is called before the internal measure of the control is finished. 
In Development
Last Updated: 15 Jan 2025 14:37 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
Created by: Eddie
Comments: 1
Category: Spreadsheet
Type: Bug Report
0

1. Select two or more cells.

2. Click on the "All charts" button

3. The charts are not displayed and the following error occurs:

In Development
Last Updated: 15 Jan 2025 08:58 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
When the navigation view is collapsed, and the client deletes a page. 
In Development
Last Updated: 14 Jan 2025 16:01 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)

Auto-complete items overlap in the VisualStudio2022 theme:

Completed
Last Updated: 14 Jan 2025 13:51 by ADMIN
Release 2025.1.2xxx (2025 Q1)

We are using the DropDownButtonElement on a RibbonBar, there are a very frustating issue with the RadArrowButtonElement.

WinForms RadButtons RadDropDownButton's elements hierarchy

 

On this image it show 5 children, but on code there are 6 children, here is a CopyPase of your  CreateChildElements in RadArrowButtonElement.


    protected override void CreateChildElements()
    {
        arrow = new ArrowPrimitive(ArrowDirection.Down);
        arrow.Class = "RadArrowButtonArrow";
        arrow.AutoSize = false;
        arrow.Alignment = System.Drawing.ContentAlignment.MiddleCenter;
        overflowArrow = new OverflowPrimitive(ArrowDirection.Down);
        overflowArrow.Class = "RadArrowButtonOverflowArrow";
        overflowArrow.AutoSize = false;
        overflowArrow.Alignment = System.Drawing.ContentAlignment.MiddleCenter;
        overflowArrow.Visibility = ElementVisibility.Collapsed;
        fillPrimitive = new FillPrimitive();
        fillPrimitive.Class = "RadArrowButtonFill";
        fillPrimitive.AutoSizeMode = RadAutoSizeMode.FitToAvailableSize;
        borderPrimitive = new BorderPrimitive();
        borderPrimitive.Class = "RadArrowButtonBorder";
        borderPrimitive.AutoSizeMode = RadAutoSizeMode.FitToAvailableSize;
        imagePrimitive = new ImagePrimitive();
        imagePrimitive.Class = "RadArrowButtonImage";
        imagePrimitive.AutoSizeMode = RadAutoSizeMode.FitToAvailableSize;
        imagePrimitive.Alignment = System.Drawing.ContentAlignment.MiddleCenter;
        textPrimitive = new TextPrimitive();
        textPrimitive.Class = "RadArrowButtonTextGlyph";
        textPrimitive.AutoSizeMode = RadAutoSizeMode.FitToAvailableSize;
        textPrimitive.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
        textPrimitive.StretchHorizontally = true;
        textPrimitive.StretchVertically = true;
        Children.Add(fillPrimitive);
        Children.Add(borderPrimitive);
        Children.Add(arrow);
        Children.Add(overflowArrow);
        Children.Add(imagePrimitive);
        Children.Add(textPrimitive);
    }


The problem is that we are changing the ArrowButton size to (6, 0) width, here is the how it looks:

As you can see the triangle is outside the ArrowButton, my first idea was to look the ArrowPrimitive and OverflowPrimitive, but that triangle is on TextPrimitive.

Making this change on RadDropDownButtonElement i was able to "solve" the offset and the size.
base.ArrowButton.TextPrimitive.Font = new Font(base.ArrowButton.TextPrimitive.Font.FontFamily, 6);

I have to comment this to something like: "I dont know why this works, but the triangle is on a child text primitive... So don't erase this line".

Planned
Last Updated: 14 Jan 2025 12:52 by ADMIN
Scheduled for 2025 Q2 (21.05.2025)

When Telerik UI for WinForms / WPF extensions are installed, Visual Studio is unresponsive for a couple of minutes after a solution is loaded. During that time, "Updating source control status…" is shown.

Workarounds:

  • Disable Telerik UI for WinForms / WPF extensions.
  • Checkout the solution file.
In Development
Last Updated: 14 Jan 2025 12:34 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
Unplanned
Last Updated: 13 Jan 2025 14:32 by ADMIN
Created by: Hardeepsingh
Comments: 1
Category: NavigationView
Type: Bug Report
0

Setting the Title property should update the header text:

 this.radPageViewPage1.Title = "test";

Unplanned
Last Updated: 10 Jan 2025 13:08 by James

Currently, RadPdfViewer offers the DataError event which is purposed to handle errors during the import process. However, if there are problematic pages that are rendered in the viewer at a later moment after the document is already imported, the viewer doesn't offer a suitable way for handling such problematic moments even though the PdfProcessing library throws one of its exceptions

The exact client's case is loading a PDF document which contains images requiring JPX Decoder which is currently not supported. Even though the PdfProcessing library throws internally the following error, the RadPdfViewer control doesn't throw the DataError event with the respective error:

Telerik.Windows.Documents.Fixed.Exceptions.NotSupportedFilterException: 'JPXDecode is not supported.'

 

Unplanned
Last Updated: 09 Jan 2025 11:30 by ADMIN
The CellSpacing property value is not taken into account. This property has different value in different themes.
Unplanned
Last Updated: 08 Jan 2025 19:14 by Dimitre
Created by: Dimitre
Comments: 0
Category: DateTimePicker
Type: Feature Request
1

Hi Team,

I would like to request to add a Today button to the RadDateTimePicker so when the user clicks on it, the value of the RadDateTimePicker will be set to the current day/time.

Thank you!

In Development
Last Updated: 08 Jan 2025 18:43 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
Visual selection highlight remains on a cell when clicking and holding on one cell, then releasing on a different cell.
In Development
Last Updated: 08 Jan 2025 18:26 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
1 2 3 4 5 6