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

Add image to radbutton

3 Answers 141 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 20 Aug 2012, 04:38 PM
How to set css for the radbutton so that it is displayed as image?

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 21 Aug 2012, 04:09 AM
Hi Tina,

Try setting the following CSS to show radbutton as image button.
aspx:
<telerik:RadButton id="RadButton1" runat="server" text="Image Button" cssclass="classImage">
    <Image EnableImageButton="true" />
</telerik:RadButton>
CSS:
.classImage
{
 background: url(Images/img.gif);
 background-position: 0 0;
 width: 20px;
 height: 10px;
}

Thanks,
Princy.
0
Tina
Top achievements
Rank 1
answered on 21 Aug 2012, 04:48 PM
How  to open radwindow in client click of radwindow?
0
Princy
Top achievements
Rank 2
answered on 22 Aug 2012, 03:53 AM
Hi Tina,

Try the following code to achieve your scenario.
aspx:
<telerik:RadButton ID="RadButton1" runat="server" Text="Open" AutoPostBack="false"  OnClientClicked="OnClientClicked"></telerik:RadButton>
JS:
function OnClientClicked()
{
 var window = radopen("RadWindow1", null);
}

Thanks,
Princy.
Tags
General Discussions
Asked by
Tina
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Tina
Top achievements
Rank 1
Share this question
or