如何在没有javascript的情况下获取KendoUI中的选定行值

时间:2016-12-28 20:14:54

标签: asp.net-mvc model-view-controller kendo-ui kendo-grid

我有以下kendoUI网格:

<div class="row">
<div class="col-md-12">
    <h4>List of SSF Pension Subscription</h4>
    <p>
        @(Html.Kendo().Grid(Model)
            .Name("Grid")
            .HtmlAttributes(new { style = "border: 0;" })
            .Columns(columns =>
            {
                columns.Bound(s => s.PensionNumber);
                columns.Bound(s => s.FirstName);
                columns.Bound(s => s.FatherName);
                columns.Bound(s => s.GrandName);
                columns.Bound(s => s.FamilyName);
                columns.Bound(s => s.BankLookup.BankName);
            })

            .Sortable()
            .Navigatable()
            .Selectable(selectable => selectable.Mode(GridSelectionMode.Multiple))
            .DataSource(dataSource => dataSource.Server()
                .Model(model => model.Id(s => s.MemberID)))
        )
    </p>
   @Html.ActionLink("Edit", "Edit", null, new { id =  ???????}, new { @class = "btn btn-default" })
</div>

我希望在点击编辑按钮后获取所选的行ID,并将该ID传递给操作方法。

提前致谢

0 个答案:

没有答案