0

How to add icon in grid button column, apart from using ButtonType="FontIconButton", but using ButtonType="PushButton"?

Here is my aspx code:

<telerik:GridButtonColumn UniqueName="DeleteCommandColumn" ButtonType="PushButton" CommandName="Delete" ConfirmText="Are you sure you want to delete this?" ConfirmDialogType="RadWindow">

Thanks for your help!

1 Answers1

0

Specify a ButtonCssClass in the css file

<telerik:GridButtonColumn UniqueName="DeleteCommandColumn" ButtonType="PushButton" ButtonCssClass="btn-withpic" CommandName="Delete" ConfirmText="Are you sure you want to delete this?" ConfirmDialogType="RadWindow"> 

In the css file, specify padding and background:

.btn-withpic{
  padding: ....;
  background: url(../../xx.png) 
            left ()px top ()px 
}

A reference:button with image

cfoppa
  • 48
  • 5