免费 jqGrid 4.8.0 - 了解内置日期格式化程序

Free jqGrid 4.8.0 - understanding of the built-in date formatter

我有一个以毫秒为单位的日期格式化程序:

gridField.formatter = 'date';
gridField.formatoptions = {};
gridField.formatoptions['srcformat'] = 'U/1000';
gridField.formatoptions['newformat'] = 'm/d/Y H:i:s';

在某个阶段,在 osSelectRow 中,我会:

celValue = $('#'+gridName).jqGrid ('getCell', rowid, 'start_time');

我得到了它们应该得到的所有值,但是当我为日期字段这样做时,我得到 'false' 作为 celValue。

我也尝试放置 unformat 函数,但它没有用(我想因为这是一个内置的格式化程序)。

这里有什么我遗漏的吗?

我发现了问题。这是因为我将 jsonmap 作为 'name',并使用其他字符串作为 ColModel 中的 'name'。