Reputation: 2661
I have a telerik mvc grid , server binding , each row has "Select" button , I want to let the button to has "Image" I use the following definition but it doesn't work
columns.Command(commands => commands.Select().ButtonType(GridButtonType.Image)).Title("");
why?
another question , can I change the image of the button , if yes, how?
Upvotes: 0
Views: 1855
Reputation: 815
You can give .HtmlAttributes
your button like
columns.Command(commands => commands.Select().ButtonType(GridButtonType.Image)).HtmlAttributes(new { @class="btn"}).Title("");
//and you have to override the image with your class
.btn .t-icon{
background-image: url('../../Images/img.png');
}
Upvotes: 0
Reputation: 2661
my problem was that , I put the style in a script in the header solution : put the style in a script in the body
Upvotes: 0