我在这里包含了表格的屏幕截图。

这个屏幕截图(http://s11.postimg.org/61za32rgz/Client_Sales.jpg)显示我的问题的解决方案显示我添加了另一列只是为了添加它,我需要制作(虚拟年初至今)整数,所以我可以把它们都总结出来。
最后,我需要设置 hidden:true 以便隐藏(虚拟列)。
谢谢。:)
不,javacript 需要它是要添加的数字。
要将Year-to-Date列从字符串转换为整数,请将formatter属性添加到 jqGrid 函数
formatter: function (cellValue, options, rawData, action) {
return parseInt(rawData[2]); //Assuming your Year-to-Date is the third column in your JSON object.
}