Kendo ui 从下拉列表中筛选剑道网格列

Kendo ui 从下拉列表中筛选剑道网格列,kendo-ui,Kendo Ui,我在剑道网格中有两个列的值:Part和subsection,我想在下拉列表中添加这两个值,并根据下拉列表的选择过滤网格。我试过:- { field: "PartType", title: "Part Type", width: 10,

我在剑道网格中有两个列的值:Part和subsection,我想在下拉列表中添加这两个值,并根据下拉列表的选择过滤网格。我试过:-

{
                                  field: "PartType",
                                  title: "Part Type",
                                  width: 10,
                                  headerAttributes: { style: "text-align:center" },
                                  attributes: { style: "text-align:left" },
                                  filterable: {
                                      cell: {
                                          operator: "contains",
                                          template: function (args) {
                                              // create a DropDownList of unique values (Active)
                                              args.element.kendoDropDownList({
                                                  dataTextField: "PartType",
                                                  dataValueField: "value",
                                                  dataSource: args.Active = new kendo.data.DataSource({
                                                      data: [{ PartType: "Part", value: "Part" }, { PartType: "SubPart", value: "SubPart" }]
                                                  }),
                                                  index: 0,
                                                  optionLabel: {
                                                      PartType: "All",
                                                      value: ""
                                                  },
                                                  valuePrimitive: true

                                              });

                                          }
                                      }
                                  }
                              },

你的问题是什么?当我在下拉列表中选择一个值时,会出现js异常“无法获取未定义或空引用的属性'type'”,因为在你的代码中没有关键字
type
。你能添加剑道吗?嗯,确切地说,忘记这个代码,谁能告诉我如何从有两个字符串的下拉列表中筛选剑道列?