Unplanned
Last Updated: 24 Apr 2024 08:22 by ADMIN
Exceptions

Top Level Exception
Type:        System.OverflowException
Message:     Arithmetic operation resulted in an overflow.
Source:      TelerikCommon
Stack Trace: at Telerik.WinControls.NativeMethods.GetMonitorDpi(Screen screen, DpiType dpiType)
   at Telerik.WinControls.VisualElement.GetScaledFont(Single scale, Font fontToScale)
   at Telerik.WinControls.UI.LightVisualElement.CreateTextParams()
Unplanned
Last Updated: 17 Apr 2024 14:40 by ADMIN

Repro-steps:

  1. Create a RadGridView
  2. MultiSelect = true
  3. SelectionMode = CellSelect
  4. Fill it with lots of cells (in my case: 7 columns, 8544 rows)
  5. Press CTRL-A
  6. Press Delete

Expected behavior:

  • All rows are gone

Observed behavior:

  • 50/50 change that some rows remain.

I traced the problem back to the method GridViewSleectedCellsCollection.IsSelected / GetHashCodeString.

internal bool IsSelected(GridViewRowInfo row, GridViewColumn column) => row != null && column is GridViewDataColumn && this.hashtable.Contains((object) this.GetHashCodeString(row, column));

When a cell is selected with GridViewCellInfo.IsSelected = true, it checks if it has already been selected. It does so by calling GridViewSleectedCellsCollection.IsSelected. which checks if a HasCodeString is already in a hashtable. But, when another selected cell has the same HasCodeString, the result is (incorrectly) true, which will result in not added it to the collection of selected cells. 

I guess that is can be easily fixed by changing:

 private string GetHashCodeString(GridViewRowInfo row, GridViewColumn column)
    {
      int hashCode = row.GetHashCode();
      string str1 = hashCode.ToString();
      hashCode = column.GetHashCode();
      string str2 = hashCode.ToString();
      return str1 + str2;
    }

to:

 private string GetHashCodeString(GridViewRowInfo row, GridViewColumn column)
    {
      int hashCode = row.GetHashCode();
      string str1 = hashCode.ToString();
      hashCode = column.GetHashCode();
      string str2 = hashCode.ToString();
      return str1 + "_" + str2;
    }

Since hashcodes 1 + 23 will result in the same string as hashcodes 12 + 3.

Making this change will reduce the problem significantly, but not entirely since hashCodes will never be unique.

Unplanned
Last Updated: 17 Apr 2024 14:39 by ADMIN

Apply the Office2010Silver theme to your application since it has a good border indication for the focus in RadSpinEditor. 

Please run the attached project and click in the RadSpinEditor that is not in the RadPopupContainer. You will notice that when you move the mouse away that the border is highlighted in yellow showing that the control has complete focus. Now, click in the RadSpinEditor that is in the RadPopupContainer and move your mouse away. You will notice that the border is not highlighted in yellow indicating that it does not have focus. You can also see that it does not fire the GotFocus event. If you click closer to the border out of the "TextBox" area, the control border will stay yellow showing complete focus and fire off the GotFocus event. However, in this case, the caret is not displayed.

Workaround: handle the GotFocus/LostFocus events for the SpinElement.TextBoxItem and apply the desired border for indicating the focus.
Unplanned
Last Updated: 17 Apr 2024 14:36 by ADMIN
ADMIN
Created by: Hristo
Comments: 0
Category: UI for WinForms
Type: Bug Report
3
Workaround: manually increase the font of the controls

protected override void OnShown(EventArgs e)
{
    base.OnShown(e);

    var dpi = NativeMethods.GetSystemDpi();

    this.Font = new Font(this.Font.Name, this.Font.Size * dpi.X / 96, this.Font.Style);
    this.radMenu1.Font = new Font(this.radMenu1.Font.Name, this.radMenu1.Font.Size * dpi.X / 96, this.radMenu1.Font.Style);
    this.radCommandBar1.Font = new Font(this.radCommandBar1.Font.Name, this.radCommandBar1.Font.Size * dpi.X / 96, this.radCommandBar1.Font.Style);
}
Unplanned
Last Updated: 17 Apr 2024 14:33 by ADMIN

UI for WinForms - Latest version.

RadRibbonBarBackstageView - Edit UI Elements

RootRadElement.BackstageViewElement.BackstageItemsPanelElement.BackgroundImage

Click the … button and select your image.

 

To REMOVE this image you SHOULD be able to do the following:

click on the property BackgroundImage which should highlight the image-string completely.

click delete.

done.

What you HAVE to do is this: 

click on the property BackgroundImage.

click delete.

BEFORE YOU LEAVE THIS PROPERTY you have to click the … box

Once the box opens you have to click "Cancel"

 

Right below this property is BackgroundImageLayout - set to "Center"

There's a dropdown arrow presumably to allow you to change the layout but nothing happens when you click it.

 

*Missing Property?*

Whatever image you place in this control it gets stretched and there doesn't appear to be any way to avoid this:

place an image.

run the winforms ap.

set the main form in normal mode (not maximized) and resize the height.

Your image will stretch, shrink...this is not a UI property that should be presumed.  We should be able to set None, Tile, Center, Stretch or Zoom.

 

Still *LOVE* your products :)

Kindest regards,

Curtis Smith 

Unplanned
Last Updated: 01 Apr 2024 09:00 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. 

Unplanned
Last Updated: 14 Mar 2024 14:06 by ADMIN
Unplanned
Last Updated: 08 Feb 2024 12:19 by Al

In the image below you can notice lines that disappear, identical lines but rendered more or less thick.

Unplanned
Last Updated: 02 Feb 2024 13:31 by ADMIN
Dynamically adding command bar buttons to a control inside a popup window may cause layout issue.
Unplanned
Last Updated: 30 Jan 2024 14:14 by ADMIN
To reproduce setup a column ColumnGroupViewDefinition, set RightToLeft mode of the grid and export it using the GridViewPdfExport class.
You will see that in the exported PDF document the columns and column groups are in Left-To-Right order.
Unplanned
Last Updated: 29 Jan 2024 15:46 by ADMIN

In the exported PDF document, the font size of the header and footer is smaller than the font of the data cells, even though the specified font is the same size.
To reproduce set the same font to the header and data cells:

pdfExport.HeaderFont.Font = new Font("Segoe UI", 10f);

private void PdfExport_CellFormatting(object sender, PdfExportCellFormattingEventArgs e)
{
    e.CellElement.Font = new Font("Segoe UI", 10f); 
}

Unplanned
Last Updated: 29 Sep 2023 09:36 by ADMIN

Using Telerik button and dropdown beside and anchored to a standard label or textbox then, when run app in a Win 11 in Korean, the presentation is not correct.

Expected result:

Observed result:

Unplanned
Last Updated: 04 May 2023 12:58 by ADMIN
The CurrentDirectoryPath property is not serialized and it is lost every time the designer is reopened.
Unplanned
Last Updated: 21 Mar 2023 09:12 by ADMIN
Created by: Martin
Comments: 1
Category: UI for WinForms
Type: Bug Report
0

Repro steps:

  1. Create a RadVirtualGrid with:
    1. A column with a nullable DateTime
    2. Another column with a string or number.
  2. Fill it with one or more rows. The DateTimes remain null.
  3. Edit a DateTime cell, open the dropdown:

  4. Click op button [Today], the date/time in the cell changes.
  5. Click [Tab], the focuses moves to the next cell, but the dropdown remains open:
  6. Click somewhere else in the grid or form, an Exception is thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.RadDateTimePickerCalendar.popupControl_Closing(Object sender, RadPopupClosingEventArgs args)

Expected behavior:

  • The dropdown closes after moving to another cell.
  • No exception occurs.

 

 

Unplanned
Last Updated: 06 Mar 2023 09:55 by ADMIN
Open the designer of the attached form. Have a look at the locations for the cbSegmentacion and btnActivaDesactivaCentrradoLinea controls. Close and reopen the designer. You will see that the location is changed.
Unplanned
Last Updated: 01 Mar 2023 13:08 by ADMIN

To reproduce:

            this.radCheckBox1.Text = "Something (in brackets)";
            this.radCheckBox1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;

Unplanned
Last Updated: 28 Nov 2022 07:50 by Shaindy
 The styles of a hyperlink (color, font properties) are not exported correctly to HTML
Unplanned
Last Updated: 29 Sep 2022 13:03 by ADMIN
Created by: erwin
Comments: 3
Category: UI for WinForms
Type: Bug Report
1

To replicate the missing button when the application is run on my main monitor with 150% DPI scaling:



If the RadControl.EnableRadAutoScale property is set to false in the Program.cs file, the button is placed as expected:



When I replace the form to inherit from RadForm, not the MS Form, the button is clipped:

Unplanned
Last Updated: 26 Sep 2022 12:39 by ADMIN
1 2 3 4