1
我正在使用Telerik MVC Grid,我試圖更改自定義列的按鈕圖像。Telerik MVC Grid自定義列圖像按鈕
column.Command(Sub(cmd)
cmd.Custom("Editar").ButtonType(GridButtonType.BareImage).HtmlAttributes(New With{ .class="btnDelete"}).DataRouteValues(Sub(route)
route.Add(Function(x) x.idPedidoDocumentacao).RouteKey("idPedidoDocumentacao")
End Sub).Action("DetalhePedido", "Pedido").SendDataKeys(True)
End Sub).Width("5%").Title("Editar")
我在CSS文件中創建一個類:
.btnDelete
{
background-position:0px 0px;
background:url(/Images/delete.png);
}
誰能幫我想出解決辦法? Thks!