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

Highlight RadButton On Demand

4 Answers 125 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Rabeeh
Top achievements
Rank 2
Rabeeh asked on 18 Nov 2009, 10:44 AM
Hi I would like to know how to Highlight a RadButton on demand ?

4 Answers, 1 is accepted

Sort by
0
Rabeeh
Top achievements
Rank 2
answered on 18 Nov 2009, 10:56 AM
I would like to get the same highlighting effect, as the one produced when the mouse passes over the RadButton...

I want to highlight RadButton, on specified events...
0
Nikolay
Telerik team
answered on 23 Nov 2009, 11:32 AM
Hi Rabeeh ,

In order to put a RadButton in a 'mouseover' state, you should simply set the IsMouseOver property of the RadButton's FillPrimitive and BorderPrimitive to true:
((FillPrimitive)this.radButton1.ButtonElement.Children[0]).IsMouseOver = true;
((BorderPrimitive)this.radButton1.ButtonElement.Children[2]).IsMouseOver = true;

I hope this helps.

Sincerely yours,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Rabeeh
Top achievements
Rank 2
answered on 24 Nov 2009, 08:23 PM
Thank you for the reply,
 
I tried the code you sent me, but it did not work, the button does not highlight..
0
Accepted
Nikolay
Telerik team
answered on 27 Nov 2009, 05:01 PM

Hi Rabeeh ,

I am attaching a sample project and a screenshot of what is the appearance of the first button when I apply the code from my previous response. Do you get the correct appearance on your side as well?

Kind regards,

Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Rabeeh
Top achievements
Rank 2
Answers by
Rabeeh
Top achievements
Rank 2
Nikolay
Telerik team
Share this question
or