To reproduce: add a RadButtonElement to the a RadRibbonBar group. Set its Text property to "<html>html formatted text" and the Enabled property to false. By default, its UseCompatibleTextRendering property is set to true, but the text is rendered blurred. Please see the attached file.
To reproduce: - Add the map control to RadSplitContainer (take the map control from here: www.vdstech.com) - Zoom with two finger gesture on a touch screen.
To reproduce: Add a RadShortcut to a RadMenuItem which is in a context menu: RadContextMenu m = new RadContextMenu(); RadGridView grid = new RadGridView { Parent = this, Dock = DockStyle.Fill }; RadContextMenuManager mm = new RadContextMenuManager(); mm.SetRadContextMenu(grid, m); RadMenuItem rtsmNew = new RadMenuItem("New"); rtsmNew.Click += rtsmNew_Click; RadShortcut rs = new RadShortcut(Keys.None, Keys.F2); rtsmNew.Shortcuts.Add(rs); rtsmNew.HintText = rs.GetDisplayText(); m.Items.Add(rtsmNew); .. private void rtsmNew_Click(object sender, EventArgs e) { new Form().ShowDialog(); } Workaround: Check whether the context menu is visible before showing the form: private void rtsmNew_Click(object sender, EventArgs e) { RadMenuItem item = sender as RadMenuItem; if (item.ElementTree.Control.Visible) { (item.ElementTree.Control as RadContextMenuDropDown).ClosePopup(RadPopupCloseReason.CloseCalled); new Form().ShowDialog(); } }
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); } } }
If you fill a WrapLayoutPanel with some content and set it to the ViewPort property of the RadScrollViewer, you will notice that RadScrollViewer will not scroll the panel correctly. Workaround: http://www.telerik.com/forums/scrolling-using-wraplayoutpanel#yirv_YCJAESwbvexlHks8Q
Create a theme using the old Visual Style Builder and load this theme in your project using RadThemeManager. Let's say that this theme is for a panel. Set the ThemeName of the panel to your custom theme. Then, close the designer, clean the project and close Visual Studio. Now reopen VS and the designer - you will notice that the theme is not applied at design-time until you click on RadThemeManager or perform another action in the designer.
1. Create a new project with RadChartView. 2. Add a Cartesian chart with a large number of points (10000 for example). 3. Set animations for every point. 4. Run the project - it will crash.
Try to add a relative theme path in RadThemeManager
I have a somewhat complex datasource with nested classes and collections of classes (called ReportConfiguration in my attached sample). I've created a sample app that illustrates the error when I try to databind using telerik controls; I get a runtime error that it cannot find one of the nested classes. Using standard .NET controls (FormMS), I do not get this error.
Apply a RoundRectShape with Radius 25 to the RootElement of a RadPanel and set panel's BackgroundShape property. Note that the image is not clipped with the correct 25 radius. Workaround: to avoid the issue through resetting the ApplyShapeToControl property when the panel is resized. void radPanel_SizeChanged(object sender, EventArgs e) { RadPanel panel = sender as RadPanel; if (panel != null) { panel.RootElement.ApplyShapeToControl = false; panel.RootElement.ApplyShapeToControl = true; } }
Tool-tips are not visible when they cannot find its parent control form.
To reproduce: On a panel in RadSplitContainer, or RadPanel, place couple of labels with combo boxes and text boxes besides them. Set some mnemonics to the labels and navigate from top elements to bottom ones. This works fine, however, if you try to navigate bottom to top, this does not work. Same behavior works correctly when placed on a form or a page in RadPageView.
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); } } } }
To reproduce add RadGroupBoxElement in another control (for example in a ribbon group) and use the VisualStudio2012 theme. Workaround: either open the theme and set the GroupBoxElement theming to be reused in other controls or use the following snippet to do the same: private void FixTheme() { string controlType = "Telerik.WinControls.UI.RadGroupBox"; StyleGroup styleGroup = ThemeResolutionService.GetTheme("VisualStudio2012Light").FindStyleGroup(controlType); styleGroup.Registrations.Add(new StyleRegistration("ElementTypeDefault", "Telerik.WinControls.UI.RadGroupBoxElement", controlType, string.Empty, string.Empty)); }
Workaround: RadPageViewBackstageElement backStageElement = radPageView1.ViewElement as RadPageViewBackstageElement; backStageElement.ItemContainer.MinSize = new Size(300, 0);
To reproduce: Add an mdi child to a form: this.IsMdiContainer = true; new Form { MdiParent = this }.Show(); ThemeResolutionService.ApplicationThemeName = new VisualStudio2012DarkTheme().ThemeName; Start the application and maximize the child form. You will see that there is no status bar for the child form. The same behavior occurs with the VisualStudio2012LightTheme. Workaround: You need to set images to the buttons in the title bar: this.FormElement.MdiControlStrip.MinimizeButton.Image = this.FormElement.TitleBar.MinimizeButton.Image; this.FormElement.MdiControlStrip.MaximizeButton.Image = this.FormElement.TitleBar.MaximizeButton.Image; this.FormElement.MdiControlStrip.CloseButton.Image = this.FormElement.TitleBar.CloseButton.Image; this.FormElement.MdiControlStrip.MinimizeButton.ShowBorder = this.FormElement.MdiControlStrip.MaximizeButton.ShowBorder = this.FormElement.MdiControlStrip.CloseButton.ShowBorder = false;
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.
Happens with Win8 and VS2012 themes, but not with the Office themes only with form's top left and right corners. If the mouse is moved into the corner from the center of the form. From this cursor position, the form cannot be resized. From this position, once a resize is attempted, repositioning the mouse and retrying the resize may not work at all.
If you dock a control in RadPanel, this control will cover the borders of RadPanel. This behavior is different from the behavior of the standard Panel behavior where the border is not covered, because of a Padding of 1. We should consider whether this change should be introduced in our suite as this could modify the design of our customers' layouts in a way then don't want. Workaround: this.radPanel1.Padding = new Padding(1);