This is a migrated thread and some comments may be shown as answers.

Menu Command Binding

5 Answers 218 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Barry
Top achievements
Rank 1
Barry asked on 25 Aug 2009, 08:24 AM
Hi,

I have added keyboard shortcuts to my menu by using the Command Bindings as follows:

Command Binding : Telerik.WinControls.Keyboard.InputBinding
Chord : Alt + F
Command : ActivateMenuItemCommand
CommandContext : mnuRootFile

This works perfectly the first time I run the App and use the shortcut ALT + F but once I have opened a menu item and close the form the keyboard shortcuts no longer work.

Could you please help me?

Thanks

Barry

5 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 28 Aug 2009, 10:04 AM
Hello Barry,

Thank you for writing.
Shortcuts are associated with the Form. Once the form is closed this association breaks.
I am not sure however, what do you mean by "once I have opened a menu item and close the form the keyboard shortcuts no longer work.". Please explain in more detail or send a sample project which demonstrates the issue.
I am looking forward to  your reply.

Best wishes,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Roberto
Top achievements
Rank 1
answered on 08 Feb 2010, 09:01 PM
Hello,
I have a similar problem. I have 2 short commands binding  within a MDI form and when I open a form child and close it, the commands binding on MDI don't work. I can see If I open it with the menu I can use both short commands. Again, if I close the form child, the commands don't work.

Roberto
0
Victor
Telerik team
answered on 11 Feb 2010, 09:28 AM
Hello Roberto,

Thank you for writing. We are aware of these issues with the command bindings and they will be fixed in a future release of the controls. I suggest you implement a custom command pattern that suits your needs. Please write again if you have other questions.

Sincerely yours,
Victor
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Nhan Rao
Top achievements
Rank 1
answered on 05 Mar 2010, 08:33 PM
I have kind of the opposite problem as Roberto.  I have command bindings defined for my application, but they often don't work until I manually open a child window through the menu.  After that, they work just fine.  This is rather annoying because they should just work from the start.  Is this also a known issue and will it be fixed?  I'm using version 2009.3.0.1103 so am not on the latest version.  If this is fixed, I'll get the latest version.  I just didn't want to disrupt development at this time, as we are getting ready for a release soon.
0
Victor
Telerik team
answered on 10 Mar 2010, 04:11 PM
Hello Nhan Rao,

Thank you for writing. We are currently re-factoring command bindings and we are considering implementing a different approach. We will try to provide the new logic in Q1 2010 SP1, but it will most likely be available in Q2 2010 release. The service pack is due by the end of April and Q2 2010 is due early in July. Thank you for your understanding.

Regards,
Victor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Menu
Asked by
Barry
Top achievements
Rank 1
Answers by
Victor
Telerik team
Roberto
Top achievements
Rank 1
Nhan Rao
Top achievements
Rank 1
Share this question
or