Filter 如果在剑道数据网格的模板中添加两个属性,则无法筛选列

Filter 如果在剑道数据网格的模板中添加两个属性,则无法筛选列,filter,datagrid,kendo-ui,Filter,Datagrid,Kendo Ui,要使过滤器正常工作,您必须: 将其作为数据源中的一列(例如FullName): 编写一个自定义筛选器,如: in this below example (Please open jsfiddle link) i was unable to filter the first column with both first name and last name. I can only filter with first name can anyone help on this please. 或者

要使过滤器正常工作,您必须:

将其作为数据源中的一列(例如FullName):

编写一个自定义筛选器,如:

in this below example (Please open jsfiddle link) i was unable to filter the first column with both first name and last name. I can only filter with first name  can anyone help on this please.

或者在您的模型中添加一个fullName()函数,如:

谢谢您的回复。我是剑道新手。你能提供一个工作的JSFIDLE例子吗?它工作得很好。如果我想使用模板,我的意思是我想把名字放在锚标记中。我已经加入了这一变化,但它就像一根绳子。您能告诉我如何使用该模板吗?过滤器应用于字段,因此只要您将字段设置为全名,您就可以添加任何您想要的模板:
filter: {
            logic: "or",
            filters: [{
                  field: "FirstName",
                  operator: "eq",
                  value: e.data.FirstName
            },
            {
              field: "LastName",
              operator: "eq",
              value: e.data.LastName
          }]
  }