telerik mvc grid image button
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?
my problem was that , I put the style in a script in the header solution : put the style in a script in the body
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');
}
精彩评论