How to highlight the check box control on focus?

4 posts, 0 answers
  1. Shamjith
    Shamjith avatar
    15 posts
    Member since:
    Sep 2008

    Posted 01 Jan 2009 Link to this post

         I have set the the tab order for all the rad controls in my winforms. Is there a way to highlight the check box control when the focus is set on it when the user navigates through the form controls by pressing the tab key? Aslo the same issue is there for other controls such as button.

  2. Victor
    Victor avatar
    1358 posts

    Posted 05 Jan 2009 Link to this post

    Hi Shamjith,

    In order to get the desired behavior for a control, you should set its AllowShowFocusCues property to true.

    If you have additional questions, feel free to contact me.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Rohit
    Rohit avatar
    1 posts
    Member since:
    Feb 2013

    Posted 18 Feb 2013 Link to this post

    I m using Visual studio 2008....Control doesn't have AllowShowFocusCues  property...what should I do? For radio button tabbing doesn't work...:-(
  4. Plamen
    Plamen avatar
    132 posts

    Posted 21 Feb 2013 Link to this post

    Hi Rohit,

    Thank you for writing.

    As to the problems at hand:

    1) The AllowShowFocusCues comes from RadControl (the base type for all controls in our suite) and you should be able to set it to RadCheckBox as demonstrates below:
    this.radCheckBox1.AllowShowFocusCues = true;

    2) By default the TabStop property of RadRadioButton set to false and to make such receive focus, you need to set it to true.
    this.radRadioButton1.TabStop = true;

    Please note that the behavior of our RadRadioButton is the same as the standard RadioButton control, when you set the TabStop - the radio button with the lowest TabIndex will get a focus, but you will still not be able to tab through your group of radio buttons . The only way to navigate through the buttons is by using the up and down keyboard navigation keys. Find attached a sample video (2013-02-21_1541), where you can observe this functionality.

    I hope this helps.

    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top