我正在使用Jqgrid
Asp.net。我正在尝试实现 Toolbar Search 。每个字段都是可搜索的,但日期搜索不起作用。我看到了一些示例,它们正在工作,因为它们使用本地数据和源中的日期格式是2012/02/02
. 但是我直接从数据库中获取数据,所以请帮我解决这个问题。
这是我的 Date Col 模块
name:'Date',
index:'Date',
align:"center",
formatter:'date',
formatoptions: {newformat:'m/d/Y'},
searchoptions:
{sopt: ['eq','ne'],
dataInit : function (elem) {
$(elem).datepicker({ changeYear: true, changeMonth: true, showButtonPanel: true});
}}