Kendo.Filterable不包含“操作员”的定义

时间:2019-05-30 15:57:36

标签: c# kendo-grid

Kendo Grid的可过滤对象的操作数有错误Kendo Grid filterable does not contain a definition for 'Messages'

Tnx

@(Html.Kendo().Grid<IoInfo>().Name("IOInfo").Columns(columns =>
    {
        columns.Bound(p => p.BeginDate).Format("{0:MM ,dd, yyyy}").Width(15).Title(Html.LabelFor(m => ioInfo.BeginDate).ToString());
        columns.Bound(p => p.BeginTime).Width(15).Title(Html.LabelFor(m => ioInfo.BeginTime).ToString());
        columns.Bound(p => p.EndDate).Format("{0:MM ,dd, yyyy}").Width(15).Title(Html.LabelFor(m => ioInfo.EndDate).ToString());
        columns.Bound(p => p.EndTime).Width(15).Title(Html.LabelFor(m => ioInfo.EndTime).ToString());
    })
      .Sortable(x => x.Enabled(true)).Selectable(x => x.Enabled(true))  .Filterable(filterable => filterable
          .Extra(false)[enter image description here][1]
          .Operators()

      .DataSource(dataSource => dataSource

          .Ajax()
          .ServerOperation(false)
          .Read(read => read.Action("BindGrid", "Person"))
      )

)

1 个答案:

答案 0 :(得分:0)

尝试一下

.Operators(op =>
    {op.ForString(str =>{str.Clear().Contains("Contains");
  })