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

Indicating focus

5 Answers 165 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Mel Grubb
Top achievements
Rank 2
Mel Grubb asked on 23 Mar 2009, 05:07 PM
I'm working on a data entry form that will be largely navigated with the keyboard, and I can't seem to get the RadButton to indicate focus.  I can see in Theme Builder that it has states set that react to mouseover events, and I tried adding an Or condition to those states to make them activate when the mouse was over them OR the control had focus.  That did nothing.

I also tried setting some different properties on the FocusPrimative element, and that didn't do anything either.

Is there an example app or tutorial that can show me how to get a proper focus rectangle to show up on a button?

5 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 26 Mar 2009, 02:45 PM
Hi Mel Grubb,

Please find the answer to your questions in your support ticket.

Sincerely yours,
Nick
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Gadi Gamburg
Top achievements
Rank 2
answered on 27 Sep 2010, 12:31 PM
I'd like to know the answer to this one as well.

Regards,
Gadi
0
Nikolay
Telerik team
answered on 01 Oct 2010, 02:37 PM
Hello Gadi,

Thank you for the question.

The conversation between Mel and my colleague Nick concerns an old version of RadControls. Our latest releases do not support the FocusPrimitive element and you can't apply a special style to the focused RadControls.

The only RadControls that support the desired behavior are our editors, thanks to their ContainsFocus state. This state allows you to change the backcolors and the border colors of an editor when it is focused. 

Regards,
Nikolay
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
0
Gadi Gamburg
Top achievements
Rank 2
answered on 03 Oct 2010, 08:14 AM
You mean that there's no way for me to get the focused effect of the dotted line on a RadButton using code?

See attached print screen - The top button.
0
Nikolay
Telerik team
answered on 07 Oct 2010, 06:50 PM
Hello Gadi Gamburg,

Thank you for the question.

The coversation here concerns the FocusPrimitive which allows you to achieve more custom and advanced look when a button is focused. As I mentioned the FocusPrimitive currently cannot be modified in the new Visual Style Builder.

The dotted rectangle is a feature separate from the FocusPrimitive feature. You should have no issues with using the dotted rectangle for your buttons. Just set the buttons' AllowShowFocusCues property to true (it is true by default):
this.radButton1.AllowShowFocusCues = true;

If you have any issues with this feature, please open a new support ticket and send us a project which demonstrates them. This will allow us to understand your case and provide you with further assistance.

Best wishes,
Nikolay
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
Themes and Visual Style Builder
Asked by
Mel Grubb
Top achievements
Rank 2
Answers by
Nick
Telerik team
Gadi Gamburg
Top achievements
Rank 2
Nikolay
Telerik team
Share this question
or