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

RadButton and Shortcuts

1 Answer 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jim Cline
Top achievements
Rank 1
Jim Cline asked on 06 Jul 2010, 03:00 PM
I have created a simple winform, added a RadButton, hooked up a click event handler, and then attempted to assign shortcut keys to it but cannot get it to work at all. I am using 2010 Q1 release.

Is there a bug? If you could post a working sample of accomplishing this, I would appreciate it.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 08 Jul 2010, 06:17 PM
Hello Jim Cline,

This is a known issue in Q1 2010, which we have already fixed (and improved) and will be available with RadControls Q2 2010 release next week. 

Its a little early, but here is the code that you should use to assign a shortcut in the Q2 2010 release:
 
public Form1()
      {
          InitializeComponent();
          RadShortcut shortcut = new RadShortcut(Keys.Control, Keys.Q);
          this.radButton1.ButtonElement.Shortcuts.Add(shortcut);
      }
       
      private void radButton1_Click(object sender, EventArgs e)
      {
          MessageBox.Show("hello");
      }

I hope you find this information helpful. Should you have any other questions, do not hesitate to contact us.

Kind regards,
Stefan
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
General Discussions
Asked by
Jim Cline
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or