此问题已经在这里有了答案:
如何从JQuery click事件中获取此值?
我基本上是从这里得到的:console.log(e);
通过Telerik的网格:columns.Command(command => command.Custom("Delete").Click("showDeleteConfirmation").HtmlAttributes(new { style = "width:95%" })).Width(87).Visible(Model.CanEditForm);
function showDeleteConfirmation(e) {
var grid = $("#RevenueGrid").data("kendoGrid");
var dialog = $('#DeleteConfirmation').data("kendoDialog");
console.log(e);
modelToDelete = grid.dataItem($(e.target).parents('tr'));
//dialog.content("Are you sure you want to delete this item with ID - " + modelToDelete. + "?");
dialog.title("Alert");
dialog.open();
}
您可以通过执行e.delegateTarget.baseURI获得值。