如何在kendo ui mvc网格中单击工具栏时从网格中获取行值。示例视图代码:
<div id="kendoGrid">
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Template(@<input id='chkPayment' type='checkbox' class='check-box' />).Title("Select");
columns.Bound(m => m.PaymentDetailDto.InvoiceNumber);
columns.Bound(m => m.PaymentDetailDto.ModifiedDate).Title("Invoice Date");
})
.ToolBar(x => x.Custom().Text("Make Payment").HtmlAttributes(new { id = "btnMakePayment" }))
)
</div>发布于 2014-02-14 22:09:44
扫描网格并搜索它的值
$('input[type="checkbox"]').each(function () {
var chkPayment = $(this);
});https://stackoverflow.com/questions/20815046
复制相似问题