RadTabStrip prohibits Form.AcceptButton?

2 posts, 1 answers
  1. Johan
    Johan avatar
    11 posts
    Member since:
    Mar 2008

    Posted 18 Jul 2008 Link to this post


    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?
  2. Answer
    Boyko Markov
    Boyko Markov avatar
    610 posts

    Posted 21 Jul 2008 Link to this post

    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)

    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
  3. DevCraft banner
Back to Top