Please run the attached sample project and navigate with the left/right arrows as it is demonstrated in the gif file.
In this specific scenario, we have a menu with 2 menu items: &File and &Open. The mnemonic sign is set to the F and O letters. In the form, we have a TextBox control which is currently focused. The next step is to press the Alt key while the TextBox is focused. Pressing some other letter, D for example, the letter will be typed in the TextBox. This letter does not exist as a mnemonic, and the RadMenu will ignore it. The RadMenu remains in active mnemonic state.
Expected behavior: Using none mnemonic letter should not be accepted by any other control until this state is closed in the RadMenu.
Hello,
we are trying to use RadPropertyGrid to show the properties of some objects listed in a RadGrdiView.
We use ExpandableObject to expand our custom property, but we have some problems when we try to show the properties of multiple selected items, when the values of the attribute of the property are not the same in all the selected objects. We tried to use PropertyGrid of Winform and we don't have this problem.
Thank you.
Workaround:
public class CustomRadDropDownList : RadDropDownList
{
protected override RadDropDownListElement CreateDropDownListElement()
{
return new CustomRadDropDownListElement();
}
public override string ThemeClassName
{
get
{
return typeof(RadDropDownList).FullName;
}
}
}
public class CustomRadDropDownListElement : RadDropDownListElement
{
protected override RadDropDownListArrowButtonElement CreateArrowButtonElement()
{
return new CustomRadDropDownListArrowButtonElement();
}
protected override Type ThemeEffectiveType
{
get
{
return typeof(RadDropDownListElement);
}
}
}
public class CustomRadDropDownListArrowButtonElement : RadDropDownListArrowButtonElement
{
protected override Type ThemeEffectiveType
{
get
{
return typeof(RadDropDownListArrowButtonElement);
}
}
protected override void OnClick(EventArgs e)
{
MouseEventArgs args = e as MouseEventArgs;
if (args.Button == System.Windows.Forms.MouseButtons.Left)
{
base.OnClick(e);
}
}
}
The issue exists with RadMenuItem as well!
Workaround:
public class CustomCommandBarButton : CommandBarButton
{
protected override void OnClick(EventArgs e)
{
MouseEventArgs args = e as MouseEventArgs;
if (args.Button == System.Windows.Forms.MouseButtons.Left)
{
base.OnClick(e);
}
}
protected override Type ThemeEffectiveType
{
get
{
return typeof(CommandBarButton);
}
}
}
RadSplitButton does not get a focus rectangle when focus by the Tab key. One should first click the action part and then the focus rectangle will appear..
The current workaround is:
public class MyRadSplitButton : RadSplitButton
{
protected override void OnEnter(EventArgs e)
{
base.OnEnter(e);
this.DropDownButtonElement.ActionButton.Focus();
}
}
This item is migrated to the Telerik Document Processing portal: http://feedback.telerik.com/Project/184/Feedback/Details/190124 Please use the new item for commenting, voting and subscribing instead of this one.
Use attached to reproduce. Workaround: - Use RadForm it explicitly handles the controls scaling. - Make sure that the following of the user controls are set like this: this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;