To reproduce: - Add RadDropDownListElement to a ribbon group - Disable then enable the control. - Additional button border is shown Workaround: radDropDownListElement1.Padding = new Padding(0);
To reproduce: - Open the Breeze theme. - Hover the ScrollBar with the mouse - the background is changed and never restored.
To reproduce: Dock a window under another with these themes( blue black silver): instead of docking under, it docks overs as if over the tab icon instead of the down arrow. Workaround: -Extract the predefined themes -Open the Office2010blue theme with Visual Style Builder -In the control structure window select RadDock - Docking Guides -Expand DockingGuidesElement and select BottomImage -In the Elements window expand DockingGuidesElement and set filter to changed properties -Change LocationOnCenterGuide property to 45;90 -Save the theme and use it in your application
ADD: Circular progress/wating bar control (busy indicator) as in Windows 8
FIX. RadBreadCrumb's ThemeName drop down does not display TelerikMetroTheme, when the latter is added to the form. However, if you type in the theme name, it is correctly applied. Note: the same problem is noticed for VisualStudio2012Dark theme as well. Workaround: set the theme at run time by using the ThemeName property.
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);
}
}
}
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.
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);