如何在kendo ui mvc grid中单击工具栏时从网格获取行值

时间:2013-12-28 13:22:05

标签: kendo-ui kendo-grid kendo-asp.net-mvc

如何在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>

1 个答案:

答案 0 :(得分:0)

扫描网格并搜索它的值

$('input[type="checkbox"]').each(function () {
        var chkPayment = $(this);
});