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

How to highlight the check box control on focus?

3 Answers 544 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shamjith
Top achievements
Rank 1
Shamjith asked on 01 Jan 2009, 11:19 AM
Hi,
     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.

Regards
Shamjith

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 05 Jan 2009, 02:21 PM
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.

Regards,
Victor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rohit
Top achievements
Rank 1
answered on 19 Feb 2013, 05:42 AM
I m using Visual studio 2008....Control doesn't have AllowShowFocusCues  property...what should I do? For radio button tabbing doesn't work...:-(
0
Plamen
Telerik team
answered on 21 Feb 2013, 02:33 PM
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.

Regards,
Plamen
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
General Discussions
Asked by
Shamjith
Top achievements
Rank 1
Answers by
Victor
Telerik team
Rohit
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or