backgroundimage to a RadButton

5 posts, 1 answers
  1. Sigma
    Sigma avatar
    87 posts
    Member since:
    Apr 2012

    Posted 31 Aug 2012 Link to this post

    Hi,

    How can I add a backgroundimage to a RadButton while the text in the RadButton is showing?

    Sigma.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 31 Aug 2012 Link to this post

    Hi,

    Try the following code to achieve your scenario.
    aspx:
    <telerik:radbutton id="RadButton1" runat="server" text="Show">
        <Icon PrimaryIconUrl="Images/img.png" />
    </telerik:radbutton>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sigma
    Sigma avatar
    87 posts
    Member since:
    Apr 2012

    Posted 03 Sep 2012 Link to this post

    Thanks for your reply. Bt it is not showing as a backgroundimage. I need a backgroundimage
  5. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 03 Sep 2012 Link to this post

    Hi Sigma,

    Try the following code snippet to achieve your scenario.

    ASPX:
    <telerik:RadButton ID="RadButton1" runat="server" Text="Show">
            <Image IsBackgroundImage="true" ImageUrl="../Images/image.jpg" />
    </telerik:RadButton>

    Hope this helps.

    Regards,
    Princy.
  6. Sigma
    Sigma avatar
    87 posts
    Member since:
    Apr 2012

    Posted 03 Sep 2012 Link to this post

    thnks
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017