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

RadTabStrip prohibits Form.AcceptButton?

1 Answer 57 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Johan
Top achievements
Rank 1
Johan asked on 18 Jul 2008, 01:24 PM
Hello,

I'm using a RadTabStrip in a form where I want to contain settings. When the user has clicked around in the different tabs and made his settings I want him to be able to press 'Enter' and make the settings dialogue dissappear. My problem is that even though the AcceptButton-property is set to my OK button, it seems that nothing happens if my RadTabStripItem is focused. This means that if I click a new tab, pressing enter does nothing (pressing esc for cancel still works fine). Is there any good work around for this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyko Markov
Telerik team
answered on 21 Jul 2008, 03:27 PM
Hi Johan,

Thank you for contacting us.

Here is a simple workaround:
Subscribe to the KeyUp event of RadTabStrip and use the API to click the button like in the sample below:
   if (e.KeyData == Keys.Enter)
            {
                this.radButton1.PerformClick();
            }


If  you have any additional questions please do not hesitate to contact me.

Best wishes,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
Johan
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Share this question
or