私は 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);
}
誰でもこれを理解するのを手伝ってもらえますか? ありがとう!