1
我在jqGrid中顯示數據,我需要顯示jqgrid頁腳中的userdata。我使用Servlet作爲服務器端,我的數據類型是json。手動我格式化數據爲JSON類型。如何在服務器端填充jqGrid頁腳中的userdata
這裏是我的JSON數據格式:
{"page":"1",
"total":8,
"records":375,
"userdata":{'totalcdrcost':'302.92'},
"rows": [
{"id":"1","cell":[1,"2011-09-16","04:36:02","9035020090","00618956189189","00","13","00:01:09","ISD","9.6","Mumbai"]},
{"id":"2","cell":[2,"2011-09-16","04:35:14","9742796383","h","00","11","00:01:54","INCOMING","0","Mumbai"]},
現在我想將此userdata
在頁腳行對於我啓用了尾行also.here是我的頁腳代碼..
footerrow : true, userDataOnFooter : true
但沒有數據顯示在jqGrid中...我不知道這是因爲JSON數據格式不正確或其他。
任何幫助將高度讚賞..提前
謝謝..
非常感謝你是救命恩人 – vikas
@vikas:不客氣!我很高興我能再次幫助你。 – Oleg