如何在jquery中显示Kendo Grid中的对象列表?

时间:2017-05-31 12:49:24

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

我正在开展一个项目,我需要在List中显示objects Kendo Grid。 下面是数据绑定的代码。

 
  $("#GridProperty").kendoGrid({
                dataSource: {
                    transport: {
                        read: {
                            dataType: "json",
                            url: $_BindPropertyData,
                            data: { "LegalEntityId": LegalEntityId, "DatasetId": DatasetId },
                            async: true,
                        }
                    },
                    schema: {
                        model: {
                            fields: {
                                GeoId: { type: "int" },
                                GeoDescription: { type: "string" },
                                GeoAbbreviation: { type: "string" },
                                //ComponentDesc: { type: "string", from: "CompModelList.ComponentDesc" },
                                Id: { type: "int" },
                                Amount1: { type: "decimal", from: "CompModelList.SaDataModel.Amount1" },
                                Amount2: { type: "decimal"}
                                //lstcompModel: {type: ""}
                            }
                        }
                    },
                },

                noRecords: {
                    template: "<p style='margin-top:5px;'>There are currently no items available<p>"
                },
                height: 525,
                reorderable: true,
                groupable: true,
                sortable: true,
                filterable: true,
                resizable: true,
                columnMenu: true,
                selectable: "row",
                dataBound: function () {

                },
                columns: Columns

            });

说明:

我从json返回Action对象列表。但我无法绑定kendo grid中的对象列表。

过去四天,我正在打扰我。请帮忙。 感谢

0 个答案:

没有答案