4 Answers, 1 is accepted
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...
I want to highlight RadButton, on specified events...
0
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:
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.
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..
I tried the code you sent me, but it did not work, the button does not highlight..
0
Accepted
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,
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.