代码之家  ›  专栏  ›  技术社区  ›  Hadi Jahangiri

如何在剑道网格中通过字符串值过滤Integer字段?

  •  0
  • Hadi Jahangiri  · 技术社区  · 3 年前

    在Kendo网格中,我想通过字符串值过滤int字段。

    但是ToDataSourceResult引发异常

    System.ArgumentException: 'Method 'System.String ToLower()' declared on type 'System.String' cannot be called with instance of type 'System.Int64''
    

    例如:

    public class BatchDetail
    {
         public long TrackNumber { get; set; }
    }
    

    我想查找所有包含“5”的曲目编号

    0 回复  |  直到 3 年前