如何在kendo ui mvc grid中单击工具栏时从网格获取行值。 示例查看代码:
<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>
答案 0 :(得分:0)
扫描网格并搜索它的值
$('input[type="checkbox"]').each(function () {
var chkPayment = $(this);
});