Unplanned
Last Updated: 14 Feb 2025 10:00 by ADMIN
Created by: Remco
Comments: 1
Category: UI for WinForms
Type: Bug Report
0

 

 

Completed
Last Updated: 12 Feb 2025 12:56 by ADMIN
Release 2025.1.211 (2025 Q1)
Created by: Liang Sime
Comments: 1
Category: UI for WinForms
Type: Bug Report
0
Me.radToggleSwith1.OffText = "OFF"
Me.radToggleSwith1.OnText = "ON"
Completed
Last Updated: 12 Feb 2025 12:41 by ADMIN
Release 2025.1.211 (2025 Q1)

Repro-steps:

myRadGridView.Rows.Add((GridViewDataRowInfo)null);

Actual behavior

  1. NullReferenceException is thrown
  2. A new row is added.

Excepted behavior

  1. Or an ArgumentNullException is thrown, and no rows are added.
  2. Or a new row is added, and no exception is thrown.

Remark

The method AddRange is also impacted by this bug.

Need More Info
Last Updated: 04 Feb 2025 14: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:

 

Duplicated
Last Updated: 04 Feb 2025 14:28 by ADMIN

This bug is about a mismatch between what behaviour is expected (on a functional level) and the actual behavior. There are different scenario's:

A normal example without a bug

int index = myRadGridView.Rows.Add(1, 2, 3); 

Actual and expected behavior

Adds a row to the grid, filling cells with the values 1, 2 and 3. Even when there are more columns than values, only the first 3 cells are filled.

Bug #1

int index = myRadGridView.Rows.Add(); // Will result in: myRadGridView.Rows.Add(new object[0]);

Actual behavior

IndexOutOfRangeException is thrown.

Expected behavior

A new row is added, the cells are not filled with anything, since it should not matter if 3, 4 or zero values are added to the cells. Or, if you are very strict, an ArgumentOutOfRangeException, telling us at least 1 value is required.

Remark

Of course there is also a NewRow() method. But that is no reason Add() should not be allowed to accept zero values.

Bug #2

int index = myRadGridView.Rows.Add((object[])null);

Actual behavior

A NullReferenceException is thrown. 

Expected behavior

ArgumentNullException, telling us that parameter "values" is not allowed to be null.

Bug #3

int index = myRadGridView.Rows.Add(new GridViewDataRowInfo(...), new GridViewDataRowInfo(...));

// or

int index = myRadGridView.Rows.Add(new object[] { new GridViewDataRowInfo(...), new GridViewDataRowInfo(...) });

Actual behavior

Only the first row is added. The second row, or even the second value (integer, string, whatever) is totally ignored. 

Expected behavior

  1. Or when a mixture of rows and values if given, an ArgumentException telling us that values and rows are not allowed to be mixed.
  2. Or when the values are all rows, all rows are added and the index of the last row is returned.
  3. Or an ArgumentException telling us that rows are not allowed to be added by this method and Add(GridViewDataRowInfo) or AddRange(GridViewDataRowInfo[]) are to be used.

Remark

The method Add(params object[] values) checks if the first value is a row, resulting in this and the previous bugs.

Declined
Last Updated: 08 Jan 2025 09:23 by ADMIN
Created by: Martin
Comments: 1
Category: UI for WinForms
Type: Bug Report
1

Repro-steps

  1. Create a RadGridView
  2. Add a GridViewDecimalColumn
  3. Add a GridViewSummaryRowItem with a GridViewSummaryItem which:
    1. calculates the average of the values in the decimal column
    2. formats the value to two decimals after the decimal point: {0:0.00}
  4. Make an event handler for ViewCellFormatting.
  5. Add some rows with values to the grid.
  6. In the event handler, try to read ((GridSummaryCellElement)e.CellElement).Value.

Actual behavior

The value contains a string representing the formatted and rounded value of the average of all values.

Expected behavior

The value contains a raw, not rounded,  not formatted, decimal value. 

Remarks

I expect this behavior since GridSummaryCellElement has two properties: Text and Value.
I expect those to have difference functions. Value to hold the actual calculated value, and Text to hold the formatted, round string-equivalent.

Another reason why I expect this, is that Value is of type object, not of type string. So expect a value corresponding to the original datatype of the column and/or the result of the calculation.

Follow-up questions

  1. In what scenario may I expect in Value another data type that string?
  2. How, during the event handler, can I retrieve the original calculated value (with using parsing, since that is slow and does not contain all the digits).

 

Unplanned
Last Updated: 19 Dec 2024 14:06 by ADMIN
Created by: JeffSM
Comments: 1
Category: UI for WinForms
Type: Feature Request
1
 
Unplanned
Last Updated: 09 Dec 2024 09:13 by ADMIN

When I use the new project wizard provided by Microsoft for a new windows forms project it lets me select the target .net version

When I do the same with the Telerik wizard, it does not let me choose what .net Version I'm targeting and does not generate the optimal code for the target version. For example when I target .net 9.0 with high dpi support, it should generate API calls for High DPI, not an entry in the app manifest. IMHO the generated code should be as close to the Microsoft Standard for the targeted .net version as possible. 

 

Completed
Last Updated: 28 Nov 2024 09:53 by ADMIN
Release 2024.4.1127 (Preview)
The AccessibleObjects in NetCore have ComVisible=False and this causes a handled exception. This attribute is not required in NetCore and could be removed.
Declined
Last Updated: 22 Nov 2024 08:54 by ADMIN

Hi, all. I am using the example you guys provide in your website and you can get from here: https://www.telerik.com/blogs/winforms-scaling-at-large-dpi-settings-is-it-even-possible-#example

As you can see in the image, I open the form in my main screen with Scale 100%. I have a second screen running in 150%. When I grab the form near to the left edge side of it, it resizes in one way, what I believe that is the correct way. However, if you grab the form near to right edge side, near the minimize, maximize and close button, it resizes differently. We have several users using our application and we are not able to fix this scalling issue, even in your own example. Could you guys have a look at it and prioritize? This kind of issue has been around for a long time without a final resolution. if not possible, let us know that we will have to decide move to another development tool.

Telerik version: 2024.2.514

Completed
Last Updated: 13 Nov 2024 12:48 by ADMIN
Release 2024.4.1113 (2024 Q4)
Created by: Al
Comments: 1
Category: UI for WinForms
Type: Feature Request
22
Request a JSON tagger for the SyntaxEditor
Unplanned
Last Updated: 07 Oct 2024 10:00 by ADMIN
Created by: Martin
Comments: 1
Category: UI for WinForms
Type: Feature Request
0

I would like to see a new property added to the RadLabel control: Style. Style is an enumeration with layout styles like in MS-Word: 

  • Normal
  • Title
  • Heading 1
  • Heading 2
  • etc.

When the style is applied, the styling (font, color, background, etc.) is applied conform the currently active Theme. Therefor all themes need to be expended to support this setting.

Of course the enum label 'Custom' should be present (or null) when a user tries to override the style-related properties (like font, color, background, etc.)

This is very usefull when a programmer wants to build his own form (with or without Layout / Flow controls).

Telerik already uses it a bit themselves: Some (data entry) controls already generate (group) headers and captions in there forms. 

Unplanned
Last Updated: 04 Oct 2024 10:02 by Alexey
Created by: Alexey
Comments: 0
Category: UI for WinForms
Type: Feature Request
1
Improve keyboard accessibility in RadGridView.
Unplanned
Last Updated: 30 Sep 2024 08:25 by ADMIN

In this case, we have an MS standard Form with control position on the form. Each of the controls has the right anchor. Moving the form to a monitor with a higher resolution messed up the size of the controls. 

Completed
Last Updated: 25 Sep 2024 10:54 by ADMIN
Release 2024.3.924

Set IsThreeState property to true and choose ToggleState to Indeterminate.

Office2019Dark:

Office2019Light:

Completed
Last Updated: 25 Sep 2024 10:50 by ADMIN
Release 2024.3.924

When I update to version 2024.3.806 I get a build error :

Completed
Last Updated: 25 Sep 2024 10:34 by ADMIN
Release 2024.3.924
Created by: Geovani
Comments: 0
Category: UI for WinForms
Type: Bug Report
0
Declined
Last Updated: 16 Sep 2024 09:31 by ADMIN
Created by: Laszlo
Comments: 1
Category: UI for WinForms
Type: Feature Request
0

Please consider integration / enhancement of the following rich sting rendering capabilities enabling performance for quick rich string related rendering tasks, providing further alternatives to GDI and GDI+ based tiresome and limited solutions, allowing scaling: https://github.com/toptensoftware/RichTextKit

 

 

Unplanned
Last Updated: 11 Sep 2024 12:43 by ADMIN
Created by: Nadya
Comments: 0
Category: UI for WinForms
Type: Feature Request
1
Control for uploading files to storage.
Unplanned
Last Updated: 05 Sep 2024 09:58 by ADMIN
Created by: Nadya
Comments: 1
Category: UI for WinForms
Type: Feature Request
0
Add new ThemePicker component that allows dynamic themes changes. 
1 2 3 4 5 6