Possible to change background color of RadButton?

2 posts, 0 answers
  1. DAVE
    DAVE avatar
    19 posts
    Member since:
    Jun 2010

    Posted 22 Feb 2011 Link to this post

    I'd like to make the background fill color of RadButtons different colors from the color set by the style.  Can that be done through code at runtime?
  2. Bozhidar
    Bozhidar avatar
    677 posts

    Posted 23 Feb 2011 Link to this post

    Hi Dave,

    The default button in RadButton control is rendered with an anchor and input inside it. Both html elements have background images coming from a sprite image that defines their background color, and it is not possible to set different color using pure CSS. Therefore you need to create custom skin where you should edit the sprite image with the button background elements with your preferred color palette.

    You may find useful the following online resources: Tutorial: Creating RadButton Custom Skin, or you could use Telerik Visual Style Builder.

    In case you want to use ButtonType="LinkButton", which is rendered with a pure CSS, you could change the background color using the necessary CSS properties.

    All the best,
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. DevCraft R3 2016 release webinar banner
Back to Top