Add image to radbutton

4 posts, 1 answers
  1. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 20 Aug 2012 Link to this post

    How to set css for the radbutton so that it is displayed as image?
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 20 Aug 2012 Link to this post

    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.
  3. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 21 Aug 2012 Link to this post

    How  to open radwindow in client click of radwindow?
  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Aug 2012 Link to this post

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