【发布时间】:2018-01-08 10:56:18
【问题描述】:
我有 jqGrid 4.15.3。我正在使用 filterToolbar 在列中进行搜索。我有 date 列,格式如下 "/Date(1515401700270)/"。比较参数是eq,ge。问题是 ge 工作正常,但是当使用 equal 搜索网格中的现有值时,它不显示任何内容。你有什么想法如何解决这个问题吗?这与模型的 srcFormat 有联系吗?
Value: /Date(1515401700270)/ -> does not work
Value: 2017-01-02 -> work
我使用的列模型是:
{ "search" : "true", "label" : "DateCreated", "name": "DateCreated", "width" : 140, "sorttype": "date", "formatter" : "date", "formatoptions" : { "newformat" : "d.m.Y" },
"searchoptions" : { "clearSearch" : "false", "sopt": ["eq","ge"], "dataInit" : "(function(el) { $(el).datepicker( { firstDay: 1, dateFormat: 'dd.mm.yy' } ); }) " } }]
【问题讨论】:
标签: javascript jquery jqgrid