To reproduce: - Run the attached project and show the popup in the "mc" column. The custom editor contains 3 textboxes and despite that the SizingType is set to Auto the textboxes are having smaller than their desired height. Workaround: - Set the textbox Margin instead of setting the CellPaddingProperty.
ColorAnimationStepConverter throws exception when system list separator is not comma.
To reproduce: Set an image to the ImagePrimitive of the RadButtonElement of RadButton. Also set the ImageLayout property to Stretch, Zoom or anything else. You will see that this property has no effect. Workaround: Use LightVisualElement. This is how it can be used as control: [ToolboxItem(true)] public class RadLightVisualButton : RadControl { private RadLightVisualButtonElement buttonElement; public RadLightVisualButtonElement ButtonElement { get { return buttonElement; } } protected override void CreateChildItems(RadElement parent) { base.CreateChildItems(parent); this.buttonElement = new RadLightVisualButtonElement(); parent.Children.Add(this.buttonElement); } } public class RadLightVisualButtonElement : LightVisualElement { protected override Type ThemeEffectiveType { get { return typeof(LightVisualElement); } } }
When creating a shortcut, without modifier key (for example F5), the text displayed next to the menu item (describing the shortcut ) is incorrect (it shows " + F5", instead of "F5").
To reproduce: public Form2() { InitializeComponent(); MyControl c = new MyControl(); c.Dock = DockStyle.Fill; this.Controls.Add(c); } public class MyControl : RadControl { protected override void CreateChildItems(RadElement parent) { base.CreateChildItems(parent); LightVisualElement element = new LightVisualElement(); element.Text = "Hello" + "\t" + "World"; element.StretchHorizontally = true; element.StretchVertically = true; parent.Children.Add(element); } } Workaround: public partial class Form2 : Form { public Form2() { InitializeComponent(); MyControl c = new MyControl(); c.Dock = DockStyle.Fill; this.Controls.Add(c); } public class MyControl : RadControl { protected override void CreateChildItems(RadElement parent) { base.CreateChildItems(parent); LightVisualElement element = new MyElement(); element.Text = "Hello" + "\t" + "World"; element.StretchHorizontally = true; element.StretchVertically = true; parent.Children.Add(element); } public class TextGraphics : RadGdiGraphics { const float TabWidth = 100; public TextGraphics(Graphics g) : base(g) { } public override void DrawString(string drawString, Rectangle rectangle, Font font, Color color, ContentAlignment alignment, StringFormat stringFormat, Orientation orientation, bool flipText) { stringFormat.SetTabStops(0, new float[] { TabWidth }); base.DrawString(drawString, rectangle, font, color, alignment, stringFormat, orientation, flipText); } public override void DrawString(string drawString, Rectangle rectangle, Font font, Color color, ContentAlignment alignment, StringFormat stringFormat, ShadowSettings shadow, System.Drawing.Text.TextRenderingHint textRendering, Orientation orientation, bool flipText) { stringFormat.SetTabStops(0, new float[] { TabWidth }); base.DrawString(drawString, rectangle, font, color, alignment, stringFormat, shadow, textRendering, orientation, flipText); } public override void DrawString(string drawString, RectangleF rectangle, Font font, Color color, ContentAlignment alignment, StringFormat stringFormat, Orientation orientation, bool flipText) { stringFormat.SetTabStops(0, new float[] { TabWidth }); base.DrawString(drawString, rectangle, font, color, alignment, stringFormat, orientation, flipText); } public override void DrawString(string drawString, RectangleF rectangle, Font font, Color color, ContentAlignment alignment, StringFormat stringFormat, ShadowSettings shadow, System.Drawing.Text.TextRenderingHint textRendering, Orientation orientation, bool flipText) { stringFormat.SetTabStops(0, new float[] { TabWidth }); base.DrawString(drawString, rectangle, font, color, alignment, stringFormat, shadow, textRendering, orientation, flipText); } } public class MyElement : LightVisualElement { protected override void PaintElement(Telerik.WinControls.Paint.IGraphics graphics, float angle, SizeF scale) { base.PaintElement(graphics, angle, scale); } protected override void PaintText(IGraphics graphics) { graphics = new TextGraphics(graphics.UnderlayGraphics as Graphics); base.PaintText(graphics); } } } }
FIX. RadRibbonForm - exception when loading icon in design time "Requested range extends past the end of the array."
Setting the ForeColor of root menu item is not taken into consideration. WORKAROUND: ((TextPrimitive)radMenuItem1.Layout.TextPanel.Children[0]).ForeColor = Color.Red;
To reproduce: string filePath = @"D:\Projects\1015954MenuItemHTML\1015954MenuItemHTML\Resources\calendar.png"; StringBuilder sbItem = new StringBuilder(); sbItem.Append("<html><b>aaa<img src=" + filePath + ">"); sbItem.Append("</html>"); RadMenuItem item = new RadMenuItem(); item.Text = sbItem.ToString(); this.radMenuItem1.Items.Add(item); Workaround: use resource file: string filePath = @"res:_1015954MenuItemHTML.Resources.calendar.png";
This causes multiple controls updates which reduces the application performance. Having 3 labels will fire the event 45 times which will update the rest of the bound controls 45 times.
VisualStudio2012Light - the Icon of RadForm and RadRibbonForm has incorrect alignment.
Html-like rendering should support base-64 encoded images
VisualStudio2012Dark theme has incorrect styling for RadLabel. The background color of RadLabel is not consistent with other colors.
To reproduce: - Add a RadDropDownList to a blank form and set its RadDropDownStyle to DropDownList. - Add a button which can Enable/Disable the drop down list. - You will notice that there is no visual clues that the control is disabled.
Steps to reproduce: 1) Launch your demo application and select -->scheduler -->DataBinding Select Bind to dataset 2) Try to re-size any appointment by mouse and click Save button it will revert to previous state and you see the error.
To reproduce: var control =new RadDateTimePickerElement(); ComponentXmlSerializer serializer = new RadTimePickerElement(); StringBuilder xml = new StringBuilder(); StringWriter writer = new StringWriter(xml); XmlTextWriter xmlWriter = new XmlTextWriter(writer); xmlWriter.WriteStartElement(control.GetType().FullName); serializer.WriteObjectElement(xmlWriter, control); xmlWriter.WriteEndElement();
To reproduce: Create a RadPropertyGrid and set its SelectedObject. Set the theme to VisualStudio2012Light, change a property of the selected object and select another property, you will see that the previous property is selected. Now scroll until the previous property is no longer visible, now scroll back until it is visible, you will see that the selection is gone. By design this selection should not exist at all. Workaround: Open the theme with VisualStyleBuilder => RadPropertyGrid => PropertyGridElement => PropertyGridTableElement => PropertyGridItemElement and set the FillTransparent repository to the PropertyGridItemElement.IsModified state.