Use the attached sample project and click the button:
at Telerik.WinControls.TelerikPaintHelper.GenerateSnapShotWithBitBlt(Control control) at Telerik.WinControls.UI.RadWaitingBar.AddBackgroundImageToAssociatedControlCoverPanel() at Telerik.WinControls.UI.RadWaitingBar.ShowCover() at Telerik.WinControls.UI.RadWaitingBar.StartWaiting() at TelerikWinFormsApp1.RadForm1.radButton1_Click(Object sender, EventArgs e) in C:\Projects\1564934_telerikwinformsapp1\TelerikWinFormsApp1\RadForm1.cs:line 31
Workaround:
public class CustomWaitingBar : RadWaitingBar
{
protected override void AddBackgroundImageToAssociatedControlCoverPanel()
{
Size associatedControlSize = this.AssociatedControl.Size;
if (associatedControlSize.Width <= 0 || associatedControlSize.Height <= 0)
{
return;
}
Bitmap controlImage = new Bitmap(associatedControlSize.Width, associatedControlSize.Height);
this.AssociatedControl.DrawToBitmap(controlImage, new Rectangle(Point.Empty, associatedControlSize));
SolidBrush semiTransBrush = new SolidBrush(this.AssociatedControlCoverPanel.BackColor); // Color.FromArgb(128, 255, 255, 255) Default color
Graphics g = Graphics.FromImage(controlImage);
g.FillRectangle(semiTransBrush, new Rectangle(Point.Empty, controlImage.Size));
this.AssociatedControlCoverPanel.BackgroundImage = controlImage;
}
public override string ThemeClassName
{
get
{
return typeof(RadWaitingBar).FullName;
}
}
}
Run the attached project and click List then Export.
Expected:
Actual:
Workaround:
Private Sub RadButton2_Click(sender As Object, e As EventArgs) Handles RadButton2.Click
Dim spreadExporter As GridViewSpreadExport = New GridViewSpreadExport(gvAssetSchedule)
AddHandler spreadExporter.CellFormatting, AddressOf spreadExporter_CellFormatting
Dim exportRenderer As New SpreadExportRenderer()
spreadExporter.ExportVisualSettings = True
Dim filename = "..\..\export" & DateTime.Now.ToLongTimeString().Replace(":", "_") & ".xlsx"
spreadExporter.RunExport(filename, exportRenderer)
Process.Start(filename)
End Sub
Private Sub spreadExporter_CellFormatting(sender As Object, e As Telerik.WinControls.Export.CellFormattingEventArgs)
If e.GridCellInfo Is Nothing Then
Dim selection As CellSelection = e.CellSelection
Dim range As CellRange = selection.CellRanges(0)
Dim val = selection.Worksheet.Cells(range.FromIndex.RowIndex, range.FromIndex.ColumnIndex).GetValue()
Dim format As New CellValueFormat("@")
selection.Worksheet.Cells(range.FromIndex.RowIndex, range.FromIndex.ColumnIndex).SetFormat(format)
Dim dt As New DateTime(1900, 1, 1)
Dim parsedDays = 0
If Integer.TryParse(val.Value.RawValue, parsedDays) Then
dt = dt.AddDays(parsedDays)
selection.Worksheet.Cells(range.FromIndex.RowIndex, range.FromIndex.ColumnIndex).SetValue(dt.Year & "-" & MonthName(dt.Month))
End If
End If
End Sub
The solution in this KB article is used: https://docs.telerik.com/devtools/winforms/knowledge-base/clickonce-application-is-broken
Follow the steps:
1. Set your main monitor to be with higher than 100% DPI scaling (e.g. 175%, 200%)
2. Set the secondary monitor with 100% DPI scaling.
3. Run the exe from the project on the secondary monitor with 100% DPI scaling. You will notice that all controls that host the standard MS TextBox are incorrectly scaled:
This scenario is reproducible when the MCCB dropdown has 1 item. To disable the selection of the row we can set the EditorControl.CurrentRow to null. However, when the dropdown is open the Text property is set to the first row.
Setting the SyntaxEditorElement.HorizontalScrollBar.Visibility property to Collapsed indeed hides the horizontal scrollbar but it is still measured and arranged and overlaps the view if you shrink the view:
At the moment, RadCalculatorDropDown allows displaying a calculator only in a popup editor. The new control should allow placing a calculator on a form or a user control.
To reproduce:
Workaround:
In the OnLoad method of RadForm do through all nested RadControls inside the UserControl and downscale them to the same DPI as the RadForm.
Updating from Version 2022.1.118 to 2022.1.222 breaks high dpi layout for existing dialogs at 150% DPI scaling:
Expected:
Actual:
Workaround: Use the MS Form
Dear Sir/Madam
Unfortunately, the SplitContainer in the .NET version 5 has problems, as you can see in the picture, I can not change the size in design time.
Is there a newer version that fixes this problem?
Telerik Winform Version :2020.3.1020
Visual Studio Version : 16.8.3
Best Regards
It is possible to add one control, but when when you try to add other controls to the layout, just sits where you place it rather than split in to sections.
Expected:
Actual:
Please refer to the below gif file. You will notice that the drop row line is shown only when dropping in the same grip but not when dropping on another grid:
Workaround: use the project in the following forum post: https://www.telerik.com/forums/preview-drop---drag-drop-between-gridview#5477699
Currently, RadPictureBox supports the gif format, but the animated gifs are not animated like the standard MS PictureBox.
Workaround: use a RadLabel to show the animated gif:
this.radLabel1.LabelElement.Image = Properties.Resources.giphy;
Use this code and click the save icon:
public RadForm1()
{
InitializeComponent();
this.radImageEditor1.ImageSaved+=radImageEditor1_ImageSaved;
this.radImageEditor1.OpenImage(@"..\..\London_01.jpg");
}
private void radImageEditor1_ImageSaved(object sender, EventArgs e)
{
RadMessageBox.Show("Saved!");
}
You will notice that the ImageSaved event is not fired.
Steps to reproduce:
1.Run the attached sample project.
2.Group by the ProductID column
3.Select Page 4
4. Expand the top group row. You will notice that the grid jumps to a previous row.
Expected:
Actual:
Workaround:
public class CustomGrid : RadGridView
{
public override string ThemeClassName
{
get
{
return typeof(RadGridView).FullName;
}
}
protected override void OnMouseDown(MouseEventArgs e)
{
GridExpanderItem expander = this.ElementTree.GetElementAtPoint(e.Location) as GridExpanderItem;
if (expander != null)
{
flag = true;
}
base.OnMouseDown(e);
}
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
flag = false;
}
bool flag = false;
protected override void OnPageChanging(object sender, PageChangingEventArgs e)
{
if (flag)
{
e.Cancel = true;
}
base.OnPageChanging(sender, e);
}
}
When the AssociatedControl property is set to form. It makes a screenshot and places it as a background. However, when Form is set, the image will be placed under the Form title bar and duplicates the title bar. The following image demonstrates this.
As a workaround, you can place a panel as the first child of the form and construct your layout. After you can set this panel to the AssociatedControl property.