Hi. I hope, i can explain my problem with Radmenu. When i was add an item with "&" (Accelerator) for character shortcut, underline is everytime showing. For example; When i typed to menu item "&File" it's showing "File" but i wanna see that only, if i press to "Alt" key from keyboard. Other times i wanna see like normal "File"...
And then, how can i add function keys for shortcut? I mean i wanna use "F1","F5", etc ...
Is there anyway to do this ? Thanks for help ...
And then, how can i add function keys for shortcut? I mean i wanna use "F1","F5", etc ...
Is there anyway to do this ? Thanks for help ...
12 Answers, 1 is accepted
0
Accepted
Hello Han,
Thank you for your questions.
Currently RadMenu doesn't support this feature. We will consider implementing it in a future version.
You should add a new CommandBinding to your menu item and associate the ActionCommand with this binding. This can be done at design-time, through the properties panel and the CommandBinding property of the menu item. Additionally you can set a hint text through the HintText property.
You may also find the following topic helpful: http://www.telerik.com/help/winforms/architecture_handlinguserinputcommandbindings.html
Please let me know if you need further assistance.
All the best,
Jack
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for your questions.
Currently RadMenu doesn't support this feature. We will consider implementing it in a future version.
You should add a new CommandBinding to your menu item and associate the ActionCommand with this binding. This can be done at design-time, through the properties panel and the CommandBinding property of the menu item. Additionally you can set a hint text through the HintText property.
You may also find the following topic helpful: http://www.telerik.com/help/winforms/architecture_handlinguserinputcommandbindings.html
Please let me know if you need further assistance.
All the best,
Jack
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Mark Griebling
Top achievements
Rank 1
answered on 24 Sep 2008, 11:19 PM
I believe the current standard is not to show the Underline until the Alt key is pressed. Has any progress been made on changing the behavior?
Thanks,
Mark
Thanks,
Mark
0
Hi Mark,
Thank you for contacting us.
You are correct, this is the modern behavior for underlining the hot keys used in Windows Vista. Currently RadMenu supports only the classic behavior, when the underlining is always visible.
We have plans to support the new behavior, however I can't give you exact time line when it will be implemented. We will be happy to raise the priority of this feature if we see more interest in it.
Do not hesitate to contact me if you have other questions.
Thank you
All the best,
Jack
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Thank you for contacting us.
You are correct, this is the modern behavior for underlining the hot keys used in Windows Vista. Currently RadMenu supports only the classic behavior, when the underlining is always visible.
We have plans to support the new behavior, however I can't give you exact time line when it will be implemented. We will be happy to raise the priority of this feature if we see more interest in it.
Do not hesitate to contact me if you have other questions.
Thank you
All the best,
Jack
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
David Simmonds
Top achievements
Rank 1
answered on 05 May 2011, 10:06 PM
I am using 2011.1. CommandBindings is a property available from code but it does not show in the property grid. Why not?
0
Hi David,
Thank you for writing.
CommandBindings is an obsolete implementation of our shortcuts mechanism since we introduced RadShortcut. Please refer to this help section, which demonstrates how to take advantage of the new functionality.
Should you have any other questions, do not hesitate to contact us.
Regards,
Stefan
the Telerik team
Thank you for writing.
CommandBindings is an obsolete implementation of our shortcuts mechanism since we introduced RadShortcut. Please refer to this help section, which demonstrates how to take advantage of the new functionality.
Should you have any other questions, do not hesitate to contact us.
Regards,
Stefan
the Telerik team
0
Eric
Top achievements
Rank 1
answered on 16 Sep 2011, 09:58 PM
For anybody having problems getting the F keys to work (F5, etc) please note you have to specify a 0 with your desired F-key as follows:
This bug report tipped me off:
http://www.telerik.com/support/pits.aspx#/public/winforms/2592
menuSave.Shortcuts.Add(
New
RadShortcut(0, Keys.F12))
This bug report tipped me off:
http://www.telerik.com/support/pits.aspx#/public/winforms/2592
0
Hi Eric,
Thank you for writing.
I just want to mention that 0 in this scenario equals Keys.None. So you can also use:
In regards to the PITS issue, I have modified its text to make it more understandable.
Regards,
Stefan
the Telerik team
Thank you for writing.
I just want to mention that 0 in this scenario equals Keys.None. So you can also use:
menuSave.Shortcuts.Add(
New
RadShortcut(Keys.None, Keys.F12))
In regards to the PITS issue, I have modified its text to make it more understandable.
Regards,
Stefan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Sabesan
Top achievements
Rank 1
answered on 07 Aug 2012, 08:35 AM
RadMenu Shortcuts are triggered even if a Menu Item is disabled.
Say for example I have a menu item "mnuLogout" and its initial status is disabled, When the menu item "mnuLogout" is clicked it should perform some logout operation. I've assigned a shortcut "Ctrl + O" for "mnuLogout"
When I press the key "Ctr + O" it triggers the action command for "mnuLogout" even when the item is disabled.
How to prevent this operation?
Say for example I have a menu item "mnuLogout" and its initial status is disabled, When the menu item "mnuLogout" is clicked it should perform some logout operation. I've assigned a shortcut "Ctrl + O" for "mnuLogout"
When I press the key "Ctr + O" it triggers the action command for "mnuLogout" even when the item is disabled.
How to prevent this operation?
0
Hello Sabesan,
Thank you for writing.
Indeed, I can confirm that this issue appears with RadMenuItem too. I am logging it in PITS and we will address it accordingly. Here you can get notified when the fix is released: http://www.telerik.com/support/pits.aspx#/public/winforms/12236.
Meanwhile, you can add a check if the item is enabled in your click event.
Your Telerik Points have been updated for this report.
Regards,
Stefan
the Telerik team
Thank you for writing.
Indeed, I can confirm that this issue appears with RadMenuItem too. I am logging it in PITS and we will address it accordingly. Here you can get notified when the fix is released: http://www.telerik.com/support/pits.aspx#/public/winforms/12236.
Meanwhile, you can add a check if the item is enabled in your click event.
Your Telerik Points have been updated for this report.
Regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
GiWorking
Top achievements
Rank 1
answered on 11 Dec 2012, 04:45 PM
the link http://www.telerik.com/help/winforms/architecture_handlinguserinputcommandbindings.html does not work...
0
Hi,
Like Stefan said in a previous post, command bindings are obsolete and you should use keyboard shortcuts instead. The described article is no longer available. Please consider the shortcuts overview page in our online documentation for a general description of shortcuts and this help article which describes in detail how to associate a shortcut with RadMenu items.
If you have further questions, we will be glad to help.
Greetings,
Jack
the Telerik team
Like Stefan said in a previous post, command bindings are obsolete and you should use keyboard shortcuts instead. The described article is no longer available. Please consider the shortcuts overview page in our online documentation for a general description of shortcuts and this help article which describes in detail how to associate a shortcut with RadMenu items.
If you have further questions, we will be glad to help.
Greetings,
Jack
the Telerik team
0
Mr Chuc
Top achievements
Rank 2
Iron
Iron
answered on 03 Apr 2024, 06:50 AM
I found the tutorial here, hope it can help someone.
https://docs.telerik.com/devtools/winforms/controls/menus/menu/usability/keyboard-navigation
You can assign mnemonics to the menu items. For example, you can use the N key to invoke the command associated with the New menu item. To implement that you need to modify the Text property of the New menu item by preceding the character N with the symbol &:
https://docs.telerik.com/devtools/winforms/controls/menus/menu/usability/keyboard-navigation
You can assign mnemonics to the menu items. For example, you can use the N key to invoke the command associated with the New menu item. To implement that you need to modify the Text property of the New menu item by preceding the character N with the symbol &: