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

2 posts, 0 answers
  1. Tariq H
    Tariq H avatar
    10 posts
    Member since:
    Dec 2009

    Posted 07 Dec 2009 Link to this post

    Hi

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

    Thanks in advance
    Tariq
  2. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 09 Dec 2009 Link to this post

    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.
  3. DevCraft banner
Back to Top