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

How to set the background color of a RadButton at runtime through code

1 Answer 86 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Tariq H
Top achievements
Rank 1
Tariq H asked on 07 Dec 2009, 01:44 PM
Hi

Can someone tell me how to set the background color of a RadButton at runtime through code?

Thanks in advance
Tariq

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 09 Dec 2009, 06:43 PM
Hi Tariq,

Thank you for contacting us.

In current implementation you should re-apply the button's template in order to change the background. It is due to a combination of the binding and the visual state manager action. We will correct this one - probably in our next internal build. However with the current release you should follow the technique demonstrated in the attached example. Please give it a try and let us know if you have other questions.

PS: Actually your question is an issue-report and because of this we updated your Telerik points.


All the best,
Ivan
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
Asked by
Tariq H
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or