We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

custom image for button

Thread ID:





130375 May 9,2017 11:08 PM UTC May 11,2017 04:07 AM UTC ASP.NET MVC 2
Tags: Button
lawrence greenberg
Asked On May 9, 2017 11:08 PM UTC

I would like to use my own images for the ej button control.  How can I do this?  thank you

Sasikala Nagarajan [Syncfusion]
Replied On May 10, 2017 09:59 AM UTC

Hi Lawrence,   
Thanks for contacting Syncfusion support.  
We can achieve your requirement with help of existing property of button PrefixIconSuffixIcon. By setting e-icon class following with your image class name to this API, can get the required images with button control. Please refer the below code example   
     @Html.EJ().Button("button").ContentType(ContentType.ImageOnly).PrefixIcon("e-icon preImage").SuffixIcon("suffixImage").Size(ButtonSize.Mini)   
.preImage {   

Also, this property supports the built icon library which is available in EJ themes. To know more about this please refer the below link   
Sasikala Nagarajan   

Preethi Nesakkan Gnanadurai [Syncfusion]
Replied On May 11, 2017 04:07 AM UTC

From: lawrence.greenberg@judicialdialog.com [mailto:lawrence.greenberg@judicialdialog.com]
Sent: Wednesday, May 10, 2017 9:28 AM
To: Syncfusion Support <support@syncfusion.com>
Subject: RE: Syncfusion support community forum 130375, custom image for button, has been updated.

thank you for your valuable help. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon