仅检查特定的kendo网格行

时间:2016-05-17 06:47:27

标签: javascript jquery kendo-grid

我在编辑模式上使用了剑道网格。当模态弹出时,我需要检查特定的行。这是我的剑道网格。

    function LoadControllerGrid(list) {

        var ListofrowIds = list
        $("#controllerGrid1").kendoGrid({
            dataSource: {
                type: "json",
                //    contentType: "application/json; charset=utf-8",
                transport: {
                    read: {
                        url: "@Html.Raw(Url.Action("GetControllerList", "Account"))",
                        type: "POST",
                        dataType: "json"
                    },

                },
                schema: {
                    model: {
                        id: "UserId",
                        fields: {
                            'Id': { type: "string" },
                            'Name': { type: "string" },
                            'Description': { type: "string" },
                            'URL': { type: "string" },
                        },

                    },
                    data: 'data',
                    total: 'TotalCount'
                },
                complete: function (jqXHR, textStatus) {
                    //     HidePageLoader();

                },
                pageSize: 5,
                serverPaging: true,
                serverSorting: true,
                serverFiltering: true,
                columnMenu: true
            },
            height: 300,
            groupable: false,
            sortable: true,
            filterable: true,
            pageable: {
                refresh: true,
                pageSizes: 5000
            },
            columns: [{ template: '<input type="checkbox" class="checkbox"  />', width: "35px" },
                      { field: "Description", title: "Actions" }, ]



        });
}

我将需要检查的特定行的ID传递给函数。上面的kendo网格显示所有的行。我可以检查那些特定行的复选框。

0 个答案:

没有答案