Hi,
I want to change the background color of Rad Button.I want to achieve this through code with out changing or creating any customized skins.
My requirement is to give button back ground as Green color.
Unfortunately Forest "skin" doesn't match with my design and when I applied "Hay" skin button is appearing in light green color.
I want to give solid green back ground to my Rad button.
Please help me its very urgent.
Thanks,
A2H
I want to change the background color of Rad Button.I want to achieve this through code with out changing or creating any customized skins.
My requirement is to give button back ground as Green color.
Unfortunately Forest "skin" doesn't match with my design and when I applied "Hay" skin button is appearing in light green color.
I want to give solid green back ground to my Rad button.
Please help me its very urgent.
Thanks,
A2H
5 Answers, 1 is accepted
0

Shinu
Top achievements
Rank 2
answered on 22 Nov 2012, 04:14 AM
Hi,
With reference to this forum thread it is not possible to set different color. One suggestion is that you can use ButtonType="LinkButton" and can set the BackColor of the RadButton as follows.
ASPX:
C#:
Hope this helps.
Regards,
Shinu.
With reference to this forum thread it is not possible to set different color. One suggestion is that you can use ButtonType="LinkButton" and can set the BackColor of the RadButton as follows.
ASPX:
<
telerik:RadButton
ID
=
"RadButton1"
ButtonType
=
"LinkButton"
Text
=
"Button"
runat
=
"server"
>
</
telerik:RadButton
>
C#:
RadButton1.BackColor = System.Drawing.Color.Green;
Hope this helps.
Regards,
Shinu.
0

Elliott
Top achievements
Rank 2
answered on 20 Dec 2012, 05:29 PM
I thought you had to do it this way
((FillPrimitive)radButton1.ButtonElement.GetChildrenByType(
typeof
(FillPrimitive))[0]).GradientStyle = Telerik.WinControls.GradientStyles.Solid;
0
Hi Marianne,
It appears that you are referring to the RadControls for WinForms. This forum thread is related to the RadButton control, which is a part of the RadControls for ASP.NET AJAX suite.
Kind regards,
Slav
the Telerik team
It appears that you are referring to the RadControls for WinForms. This forum thread is related to the RadButton control, which is a part of the RadControls for ASP.NET AJAX suite.
Kind regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0

Elliott
Top achievements
Rank 2
answered on 24 Dec 2012, 09:21 PM
you are correct
0

A2H
Top achievements
Rank 1
answered on 22 Jan 2013, 07:21 AM
Hi All,
Thanks For your help.
I have acheived it by creating a Custom Skin for the button.
Thanks,
A2H
Thanks For your help.
I have acheived it by creating a Custom Skin for the button.
Thanks,
A2H