Add heatmap control as in the WPF suite http://www.telerik.com/products/wpf/heatmap.aspx
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.
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.
ADD. NewControl - add TreeMap control
Hello, The Toast Notification is similar than the MessageBox, but not block the UI with an "always on top" dialog and dont have a dialogresult return value. This is only a text message, that shown, and hides after specified second. I can set the text, the background and foreground color, the container control and the alignment of the notification. I use this control to interact with the user, but not disturb his work. Example messages: "The table saved successfully!" "Refresh done." etc.. The color can define also the type of the message: Green -> OK Red -> Error Yellow ->Warning Blue -> Information ... Thanks! Best Regards, László
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.
1. Create a new project and add RadForm. 2. Open the form at design time. 3. Set its ThemeName to ControlDefault. 4. Choose the Reset option from the ThemeName drop down. 5. Repeat this operation several times and watch how form size changes.
A free configurable KANBAN-Board. - Add N columns. - Add tasks to column. - Move task by drag and drop between columns. - Task with header, image, link (or click event) - Task as expandable container
ADD. Data Validation component, which allows the user to set at design time the validation requirements to sets of controls
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>());
To reproduce: Add some buttons to a form set the theme to Fluent and press the button using the space button Workaround: Use the attached theme.
Add Navigation bar Like the one at the bottom of Outlook 2013 with pop-ups when hovering.
It will be nice if our WinForms suite provides a touch keyboard (useful in the case of tablets and kiosks). It will be also good of the keyboard is attached an shown automatically when an editor control gets focus.
Syntax highlighting editor that supports C# and intelisense
To reproduce: please run the application provided in the ticket. You will notice that RadGridView stops updating. Workaround: use MethodInvoker for the update operation: private void readTicks() { DateTime now = DateTime.Now; Tick previouse = null; for (int i = 0; i < lines.Length; i++) { if (canceled) return; var t = new Tick(); try { try { JsonConvert.PopulateObject(lines[i], t); } catch { continue; } var c = contracts[t.ContractId]; c.Row[(int)t.TickType] = t; c.CurrentTickSetNr++; if (this.radGridView1.InvokeRequired) { this.radGridView1.Invoke(new MethodInvoker(delegate { c.Fire(t); })); } else { c.Fire(t); } previouse = t; OnTick?.Invoke(c.ConId, i); } catch (Exception e) { Debug.WriteLine(e.Message); } } OnDone?.Invoke(this, new EventArgs()); }
If you currently install the nuget package "UI.for.WinForms.Themes", all themes are loaded and referenced. If you only use one theme in the application, you have to remove all others manually. It would be nice if there was an extra package for each theme.