带有日期选择器控件的jqgrid错误



我使用的是jqGrid 4.5.1。当我使用datepicker控件时,colmodel中指定的格式仅用于编辑。

当我选择一个日期并添加一行时,它会在网格中显示一个随机数作为日期(例如,如果我从datepicker中选择2013-08-28,它会显示2194-09-08)。

请注意,编辑是有效的,但只有添加新行才有这个问题。

当我们使用旧版本的jqGrid(3.8.2)时,情况就不一样了。我没有尝试,但我引用了这个网站上的旧jqGrid库http://www.ok-soft-gmbh.com/jqGrid/LocalFormEditing.htm

我认为这是最新版本中的一个错误。我包括的文件有:

jquery 1.9.1
jqueryUI 1.10.3
grid.locale-en.js
jquery.jqgrid.js

我认为jqGrid不能与最新版本的jQuery一起正常工作是一个错误。

是否有人尝试过使用datepicker的jqGrid以及最新的jQuery、jqGrid和jQuery UI库

谢谢。

我有一个模板:

var colDateTemplate = {
editable: true,
width: 200,
align: "center",
sortable: true,
sorttype: "date",
editrules: { date: true },
editoptions: {        
    size: 20,
    maxlengh: 10,
    dataInit: function(element) {
        $(element).datepicker({
            showOn: 'both',
            dateFormat: 'dd/mm/yy',
            buttonImage: '/images/calendar-icon.png',
            buttonImageOnly: true
        });
    }
},
searchoptions: {
    sopt: ['eq', 'ne', 'lt', 'le', 'gt', 'ge', 'nu', 'nn'],
    dataInit: function(element) {
        $(element).datepicker({
            showOn: 'both',
            dateFormat: 'dd/mm/yy',
            buttonImage: '/images/calendar-icon.png',
            buttonImageOnly: true
        });
    }
}

}

当我搜索并选择带有日期的字段时,缺少运算符"is null"one_answers"is not null"。我使用的是jqGrid 4.5.2,jQuery UI Timepicker 0.3.1,jQuery UI-v1.8.20

最新更新