Extract the source in a folder like this: "Telerik UI for WinForms R3 2017" Workaround: Remove the spaces in the path.
Do you have a version which can support Microsoft .NET Framework 2.0? I run a sample application TelerikUIforWinFormsDemoAppsHub\BugTracker asking for Microsoft .NET Framework 4.0. We had some PC still running Microsoft .NET Framework 2.0.
Hello, i have a suggestion for WinControls, please add a comfortable language Support without methode override. Please create a property field Pull-Down MenĂ¼ in every Control where Developer can change the language of the control in e.g. englisch, spain, german and so on. The translation could be done very quickly with the help of the Telerik community and their experience.
Implement a facility to convert a RadDocument to a RadPrintDocument (or something that can be handed to a RadPrintPreview) to avoid having to load up a RadRichTextEditor just to print a code-generated document.
Poor support for custom DPI scaling in Windows 7 - Windows 10. There no null checking, and there is dirty hacks: CASE 1: RadPageViewElement public override void DpiScaleChanged(SizeF scaleFactor) { base.DpiScaleChanged(scaleFactor); if (this.Owner != null && this.Owner.Pages.Count > 1) { this.Owner.SuspendEvents(); if (this.Owner.SelectedPage == this.Owner.Pages[0]) { this.Owner.SelectedPage = this.Owner.Pages[1]; // NO NULL CHECKING this.Owner.SelectedPage = this.Owner.Pages[0]; // DIRTY HACK: users can have their own processing OnSelectedPage, which is unexpected here! } else { RadPageViewPage page = this.Owner.SelectedPage; this.Owner.SelectedPage = this.Owner.Pages[0]; this.Owner.SelectedPage = page; } CASE 2: public partial class RadForm1 : Telerik.WinControls.UI.RadForm { public RadForm1() { InitializeComponent(); radWizard1.Pages.Add(new WizardPage()); // when user has 100% Dpi, this code works normally. But if user has custom scale DPI (e.g. 101%), user received System.NullReferenceException: 'Object reference not set to an instance of an object.' (because because again there is no verification for ContentArea = null)... } } Please improve the work with custom DPI scaling!
I have a winforms controls product with specific license of 2017.1.221.40 and I need to know what themes are available for this specific version and how to implement it, since I need to know if I can apply the them "VisualStudio2012DarkTheme" and how do it.
How to reproduce: store an image on the file and try to use it this way string path = @"D:\img.png"; this.radLabel1.Text = "<html><img src=" + path + "><b>Test</b></html>"; Workaround: if possible embed the image in the assembly and use it as a resource this.radLabel1.Text = "<html><img src=res:_1133506_RadLabelLinkHtmlLike.img.png><b>Test</b></html>";
Workaround: set the property with code this.radListView1.ListViewElement.ViewElement.VScrollBar.MinThumbLength = 50;
I know it is not an easy task. I love the new vb.net form conversion to telerik form . Could you please make one from vb6 to telerik form conversion. I know I am asking for a lot but I am pretty sure your sales is going to skyrocket with this feature. Please think about it.
After revamping the documentation for the Telerik UI for WinForms product, the following problems occurred: 1. Search for a specific class or method in the search box in the following site: https://docs.telerik.com/devtools/winforms/introduction. Select one of the results referring to the API documentation. As a result you will be navigated to the main page of the API reference instead of to the respective class or method. Refer to the Problem1.gif file. It seems that the search results from the API reference return old links for the previous API link pattern. 2. The search box in https://docs.telerik.com/devtools/winforms/api/ is significantly lagging while typing. We should consider performing the search operation after pressing Enter and not with each keystroke. Please refer to the Problem2.gif file. 3. When you scroll the navigation view on the left side to a certain position and select an article, the vertical scrollbar sometimes gets reset to the top position and you have to scroll back. (Note that this problem is not reproduced each time).
workaround: public class MyGridView : RadGridView { public override string ThemeClassName { get { return typeof(RadGridView).FullName; } } protected override void ProcessCodedUIMessage(ref IPCMessage request) { if (request != null) //here is the problematic point base.ProcessCodedUIMessage(ref request); } }
When a RadSvgImage document is modified the cache of raster images needs to be cleared, so the modifications can be visualized.
For example we want to change the following SVG
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<defs>
<style>.cls-1{fill:none;stroke:#228bcb;stroke-miterlimit:5;stroke-width:1.2px;} </style>
</defs>
<g id="undoModern16">
<g id="icon">
<path class="cls-1" d="M5.61,10.36.82,5.51,5.61.63M9.5,14.5h1.28A4.51,4.51,0,0,0,15.38,10h0a4.52,4.52,0,0,0-4.6-4.5H.82" />
</g>
</g>
</svg>
Here is how it looks :
To change the color of this SVG we need to change the stroke color of the path that represents the arrow. First, we need to find the element of type SvgPath and then set its stroke to the desired color.
RadSvgImage svg = this.buttonUndo.SvgImage;
Svg.SvgPath path = svg.Document.Children.FindSvgElementOf<Svg.SvgPath>();
// set arrow color to gray(51,51,51)
path.Stroke = new Svg.SvgColourServer(System.Drawing.Color.FromArgb(51, 51, 51));
// no API to reset the cache
As a workaround we need to reassign the image of button:
// clear the cache of RadSvgImage
this.buttonUndo.SvgImage = null;
this.buttonUndo.SvgImage = svg;
Another possible workaround when working with LightVisualElement and its derivatives is to clear the cache with reflection:
var fi = svg.GetType().GetField("cachedSizesToImages", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
fi.SetValue(svg, new Dictionary<Size, Bitmap>());
StackTrace:
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Telerik.WinControls.VisualElement.GetScaledFont(Single scale)
at Telerik.WinControls.UI.LightVisualElement.CreateTextParams()
at Telerik.WinControls.UI.GridCellElement.CreateTextParams()
at Telerik.WinControls.UI.TextPart.Measure(SizeF availableSize)
KeyNotFoundException when trying to access a dictionary in GetScaledFont, because of race condition, when setting a Font in another thread.
After a project, built with the standard MS controls, is successfully converted to a Telerik WinForms project, the subscriptions to certain events available in the Designer.cs file may disappear if you open the design view and make some changes. A solution for this behavior is described in the How to Deal with Disappearing Event Handlers after Opening the Designer for a Converted WinForms Project KB Article.