Menu Command Binding

6 posts, 0 answers
  1. Barry
    Barry avatar
    13 posts
    Member since:
    May 2009

    Posted 25 Aug 2009 Link to this post

    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
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 28 Aug 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Roberto
    Roberto avatar
    4 posts
    Member since:
    Mar 2008

    Posted 08 Feb 2010 Link to this post

    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
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 11 Feb 2010 Link to this post

    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.
  6. Nhan Rao
    Nhan Rao avatar
    7 posts
    Member since:
    Sep 2009

    Posted 05 Mar 2010 Link to this post

    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.
  7. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 10 Mar 2010 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready